SDK & Tool Integrations
Configure popular AI coding tools and SDKs to route through JBridge — Claude Code, Codex, Cursor, Windsurf, OpenAI SDK, Anthropic SDK.
This page lists configuration snippets for popular AI coding tools and SDKs. All examples use the placeholder sk-jb-YOUR_KEY — replace with a key from your API Keys page.
For a quick smoke test, see the Quickstart.
Claude Code
export ANTHROPIC_BASE_URL=https://jbridge.ai/api
export ANTHROPIC_AUTH_TOKEN=sk-jb-YOUR_KEY
Add to ~/.zshrc or ~/.bashrc to persist. Reference: Claude Code LLM gateway.
OpenAI Codex CLI
# ~/.codex/config.toml
openai_base_url = "https://jbridge.ai/api/v1"
export OPENAI_API_KEY=sk-jb-YOUR_KEY
Reference: Codex config.
Cursor
In Cursor settings → Models → Custom OpenAI endpoint:
- Base URL:
https://jbridge.ai/api/v1 - API Key:
sk-jb-YOUR_KEY
Then enable any OpenAI-compatible model. Cursor will route requests through JBridge.
Windsurf
In Windsurf settings → Models → OpenAI-compatible provider:
- Base URL:
https://jbridge.ai/api/v1 - API Key:
sk-jb-YOUR_KEY
OpenAI SDK (Python / JS)
Python
from openai import OpenAI
client = OpenAI(
base_url="https://jbridge.ai/api/v1",
api_key="sk-jb-YOUR_KEY",
)
JavaScript
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://jbridge.ai/api/v1',
apiKey: 'sk-jb-YOUR_KEY'
});
Anthropic SDK (Python / JS)
Python
from anthropic import Anthropic
client = Anthropic(
base_url="https://jbridge.ai/api",
api_key="sk-jb-YOUR_KEY",
)
JavaScript
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
baseURL: 'https://jbridge.ai/api',
apiKey: 'sk-jb-YOUR_KEY'
});
Don't see your tool?
Most LLM tooling that supports a custom OpenAI-compatible base URL will work — point it at https://jbridge.ai/api/v1 and use a JBridge key. If a tool needs a separate guide, let us know.