/docs—7 sections
Build before breakfast.
Jailbroken AI speaks the protocols your tools already use. Oh My Pi is our recommended coding CLI, with automatic model discovery and Responses support.
Recommended: Oh My Pi
Oh My Pi installs the omp command. This setup uses openai-responses and discovers your available model IDs directly from Jailbroken AI. Your API key belongs in the environment variable—not in the YAML file.
curl -fsSL https://omp.sh/install | sh
mkdir -p ~/.omp/agent
cat > ~/.omp/agent/models.yml <<'YAML'
providers:
jailbrokenai:
baseUrl: https://jailbrokenai.net/v1
apiKey: JAILBROKENAI_API_KEY
api: openai-responses
discovery:
type: openai-models-list
YAML
export JAILBROKENAI_API_KEY='sk-safe_...'
omp models refresh jailbrokenai
omp -p --model jailbrokenai/gpt-6-luna "Reply with only OK"For Chat Completions instead, change api: openai-responses to api: openai-completions. For Anthropic Messages, use api: anthropic-messages with auth: apiKey.
OpenAI-compatible request
The base URL is https://jailbrokenai.net/v1. Authenticate with Authorization: Bearer sk-safe_....
curl https://jailbrokenai.net/v1/chat/completions \
-H "Authorization: Bearer $JAILBROKENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-6-luna","messages":[{"role":"user","content":"Hello"}]}'import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://jailbrokenai.net/v1",
apiKey: process.env.JAILBROKENAI_API_KEY,
});
const response = await client.chat.completions.create({
model: "gpt-6-luna",
messages: [{ role: "user", content: "Hello" }],
});Streaming
Set stream: true. Jailbroken AI forwards SSE events as they arrive and cancels the upstream request if your client disconnects. For Chat Completions, Jailbroken AI requests the final usage chunk automatically so billing does not depend on your SDK configuration.
curl -N https://jailbrokenai.net/v1/chat/completions \
-H "Authorization: Bearer $JAILBROKENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-6-luna","stream":true,"messages":[{"role":"user","content":"Hello"}]}'Claude Code and Anthropic SDKs
Anthropic clients use the base URL without /v1; the client appends the route itself. Select an enabled model explicitly, for example claude-sonnet-5-5.
export ANTHROPIC_BASE_URL=https://jailbrokenai.net export ANTHROPIC_AUTH_TOKEN=sk-safe_... claude --model claude-sonnet-5-5
Other coding agents
| Client | Provider / protocol | Base URL |
|---|---|---|
| Cline / Roo Code | OpenAI Compatible | https://jailbrokenai.net/v1 |
| Codex CLI | Responses | https://jailbrokenai.net/v1 |
| Continue | OpenAI | https://jailbrokenai.net/v1 |
| Claude Code | Anthropic Messages | https://jailbrokenai.net |
Errors and retries
401 means a missing, invalid, or revoked key. 402 means insufficient available balance. 429 means a user or capacity limit; honor Retry-After. Retry upstream 5xx errors with exponential backoff, but never automatically repeat a stream after output has started.
- 401
invalid_api_keyThe key is rejected
- Why
- The key is mistyped or revoked, or it is your account key. The account key (
SAFE-...) only logs you into this site. - Fix
- Use an API key that starts with
sk-safe_, with no spaces around it. If you lost it, create a new one. API keys
- 404
Not FoundConnection error or 404
- Why
- The base URL is wrong. Usually
/v1is missing or one too many. - Fix
- OpenAI-style tools use
https://jailbrokenai.net/v1. Claude Code and Anthropic SDKs usehttps://jailbrokenai.netwithout/v1. Do not add/chat/completionsyourself. Setup guides
- 402
insufficient_balanceOut of balance
- Why
- Your available balance does not cover the request.
- Fix
- Top up. Requests work again as soon as the payment is confirmed. Top up
- 402
key_spend_limitThe key hit its spend limit
- Why
- This key has used up the spend limit that was set for it.
- Fix
- Use a key with a higher limit, or one without a limit. API keys
- 400
model_not_foundModel not found
- Why
- The model ID is misspelled or not in the catalog.
- Fix
- Copy the exact ID from the Models page. Only Oh My Pi uses the
jailbrokenai/prefix. Leave it out everywhere else. Models
- 429
rate_limit429concurrency_limitToo many requests
- Why
- This key sent more requests per minute, or more at the same time, than it allows.
- Fix
- Wait for the number of seconds in the
Retry-Afterheader, then try again. Run fewer requests in parallel.
- 429
queue_timeout503upstream_capacity503upstream_unavailableThe model is busy
- Why
- The model has no free capacity right now. Your setup is fine.
- Fix
- Try again after a few seconds. If it keeps happening, check the status page or pick another model. Model status
- SSE
upstream_timeoutThe answer stopped halfway
- Why
- The model stopped responding while it was streaming.
- Fix
- Send the request again. If no output had arrived, you were not charged.
Email us and include the request ID. It is the request_id in the error message, and it is listed on the Usage page. Never send your API key or your account key. We do not need them. [email protected]
Privacy
Jailbroken AI logs request metadata needed for billing and reliability: account, model, token counts, timings, status, and cost. It does not log prompts, completions, authorization headers, or API keys.
Requests are forwarded to upstream providers to be answered, and their own data policies apply; Jailbroken AI does not control them. Signup never asks for KYC, an email, or a phone number.