Install and configure Juicebox SDK/CLI authentication. Use when setting up a new Juicebox integration, configuring API keys, or initializing Juicebox in your project. Trigger with phrases like "install juicebox", "setup juicebox", "juicebox auth", "configure juicebox API key".
Set up Juicebox SDK and configure authentication credentials for the AI-powered people search platform.
# Node.js
npm install @juicebox/sdk
# Python
pip install juicebox-sdk
# Set environment variable
export JUICEBOX_API_KEY="your-api-key"
# Or create .env file
echo 'JUICEBOX_API_KEY=your-api-key' >> .env
import { JuiceboxClient } from '@juicebox/sdk';
const client = new JuiceboxClient({
apiKey: process.env.JUICEBOX_API_KEY
});
const result = await client.search.test();
console.log(result.success ? 'OK' : 'Failed');
| Error | Cause | Solution |
|---|---|---|
| Invalid API Key | Incorrect or expired key | Verify key in Juicebox dashboard |
| Rate Limited | Exceeded quota | Check quota at https://juicebox.ai/docs |
| Network Error | Firewall blocking | Ensure outbound HTTPS allowed |
| Module Not Found | Installation failed | Run npm install or pip install again |
import { JuiceboxClient } from '@juicebox/sdk';
const client = new JuiceboxClient({
apiKey: process.env.JUICEBOX_API_KEY,
timeout: 30000
});
from juicebox import JuiceboxClient
import os
client = JuiceboxClient(
api_key=os.environ.get('JUICEBOX_API_KEY')
)
After successful auth, proceed to juicebox-hello-world for your first people search.