JAILBROKEN AI

/docs7 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.

/01

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.

terminal
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.

/02

OpenAI-compatible request

The base URL is https://jailbrokenai.net/v1. Authenticate with Authorization: Bearer sk-safe_....

curl
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"}]}'
javascript
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" }],
});
/03

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.

stream with curl
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"}]}'
/04

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.

claude code
export ANTHROPIC_BASE_URL=https://jailbrokenai.net
export ANTHROPIC_AUTH_TOKEN=sk-safe_...
claude --model claude-sonnet-5-5
/05

Other coding agents

ClientProvider / protocolBase URL
Cline / Roo CodeOpenAI Compatiblehttps://jailbrokenai.net/v1
Codex CLIResponseshttps://jailbrokenai.net/v1
ContinueOpenAIhttps://jailbrokenai.net/v1
Claude CodeAnthropic Messageshttps://jailbrokenai.net
/06

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.

  • 401invalid_api_key

    The 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
  • 404Not Found

    Connection error or 404

    Why
    The base URL is wrong. Usually /v1 is missing or one too many.
    Fix
    OpenAI-style tools use https://jailbrokenai.net/v1. Claude Code and Anthropic SDKs use https://jailbrokenai.net without /v1. Do not add /chat/completions yourself. Setup guides
  • 402insufficient_balance

    Out 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
  • 402key_spend_limit

    The 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
  • 400model_not_found

    Model 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
  • 429rate_limit429concurrency_limit

    Too 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-After header, then try again. Run fewer requests in parallel.
  • 429queue_timeout503upstream_capacity503upstream_unavailable

    The 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
  • SSEupstream_timeout

    The 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]

/07

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.