CLI INTEGRATION DOCS
Point Claude Code, OpenCode, or any Anthropic-compatible client to Nobody AI. No separate Anthropic API key needed — use the quota you already have.
No separate Anthropic bill. Use the token quota you already have on your Nobody AI account.
Works with Claude Code, OpenCode, Cursor, and more. Just set the base URL and API key.
Requests go through Nobody AI's jailbreak loop — fewer refusals, more raw output.
Every API request is logged. Track usage in the API Monitor dashboard.
01 — CLAUDE CODE
Nobody AI works as a drop-in provider for Claude Code. Set the base URL and API key, then launch Claude Code normally.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.nobody0x.com",
"ANTHROPIC_API_KEY": "<your-api-key>",
"ANTHROPIC_MODEL": "nobody-v2-workspace",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "nobody-v2-workspace",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "nobody-v2-workspace",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "nobody-v2-workspace"
},
"model": "nobody-v2-workspace"
}export ANTHROPIC_BASE_URL="https://api.nobody0x.com"
export ANTHROPIC_API_KEY="<your-api-key>"
export ANTHROPIC_MODEL="nobody-v2-workspace"Go to Nobody AI Dashboard → API Monitor → create a new key. Copy it immediately — it won't be shown again.
Edit ~/.claude/settings.json or set environment variables. Replace <your-api-key> with your Nobody AI key.
Start Claude Code normally. It will route through Nobody AI's proxy automatically.
claudeAsk Claude Code "What model are you?" — it should respond as Nobody AI proxy.
02 — OPENCODE
OpenCode is an open-source AI coding assistant. Nobody AI provides full API compatibility via the OpenAI-compatible endpoint.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"nobody": {
"npm": "@ai-sdk/anthropic",
"name": "Nobody AI",
"options": {
"baseURL": "https://api.nobody0x.com/v1",
"apiKey": "<your-api-key>"
},
"models": {
"nobody-v2-workspace": {
"name": "Nobody V2 Workspace"
},
"nobody-pentest": {
"name": "Nobody Pentest"
}
}
}
},
"model": "nobody/nobody-v2-workspace"
}npm install -g opencodeCreate or edit opencode.json in your project root with the config above. Replace <your-api-key> with your key.
opencode03 — RAW API
Nobody AI exposes Anthropic-compatible and OpenAI-compatible endpoints. Use curl, Python, or any HTTP client.
curl https://api.nobody0x.com/v1/messages \
-H "x-api-key: <your-api-key>" \
-H "content-type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "nobody-v2-workspace",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'import anthropic
client = anthropic.Anthropic(
api_key="<your-api-key>",
base_url="https://api.nobody0x.com"
)
message = client.messages.create(
model="nobody-v2-workspace",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}]
)
print(message.content[0].text)04 — REFERENCE
Endpoints and available models on Nobody AI.
| Endpoint | Method | Description |
|---|---|---|
/v1/messages |
POST | Anthropic-compatible (Claude Code, SDK) |
/v1/chat/completions |
POST | OpenAI-compatible (OpenCode, Cursor) |
/v1/models |
GET | List available models |
/v1/wsproxy |
GET | WebSocket proxy for streaming |
| Model ID | Best For |
|---|---|
nobody-v2-workspace |
Code generation, complex reasoning, workspace tasks |
nobody-pentest |
Security scanning, pentesting (requires MCP) |
All requests require your Nobody AI API key. Pass it via the x-api-key header (Anthropic) or Authorization: Bearer (OpenAI).
# Anthropic format
x-api-key: your-nobody-ai-api-key
# OpenAI format
Authorization: Bearer your-nobody-ai-api-key