Back to Docs
Getting Started
Get up and running with GrepLabs products in under 5 minutes.
1
Create an Account
Sign up for a free GrepLabs account to get your API keys and access the dashboard.
No credit card required. Free tier includes generous limits for all products.
2
Get Your API Key
API Keys
Navigate to Settings → API Keys in your dashboard. Create a new key for each environment (development, production).
# Your API key will look like this: GREPLABS_API_KEY=gl_live_xxxxxxxxxxxxxxxxxxxx # For development, use sandbox keys: GREPLABS_API_KEY=gl_test_xxxxxxxxxxxxxxxxxxxx
Keep your API keys secure. Never commit them to version control.
3
Install the SDK
Choose your language
JavaScript / TypeScript
npm install @greplabs/sdk
Python
pip install greplabs
Go
go get github.com/greplabs/sdk-go
Rust
cargo add greplabs
4
Make Your First Request
Quick Example
import { GrepLabs } from '@greplabs/sdk';
const client = new GrepLabs({
apiKey: process.env.GREPLABS_API_KEY,
});
// Check account status
const status = await client.account.status();
console.log('Account:', status.email);
console.log('Plan:', status.plan);
console.log('Usage:', status.usage);That's it! You're now ready to use any GrepLabs product.
Product Quick Starts
Shields AI
DNS filtering and threat detection
const result = await client.shields.query({
domain: 'example.com',
type: 'A'
});Hippo
Semantic file search
const results = await client.hippo.search({
query: 'meeting notes from last week',
limit: 10
});Chai.im
Encrypted messaging
const message = await client.chai.send({
to: 'user@example.com',
content: 'Hello, world!'
});GrepCoin
Gaming and rewards
const balance = await client.grepcoin.balance({
wallet: '0x...'
});