You received an API key from your provider. Here's everything you need to start using it — no technical background required.
Every AI app needs the same two things. Have these ready before you start.
Tap a tab to see exactly where each value goes.
claude-sonnet-4-6 as a balanced default — you can swap in any other model name (like claude-opus-4-7 for maximum capability) in the same config. Check the full available list on the Balance page after pasting your key. No need to specify a model per-message — most apps use one default and let you change it anytime.
OpenClaw is an open-source AI agent tool you run from your terminal. With your CCCAI key, you get access to ALL models on the gateway — Claude Sonnet, Claude Opus, GPT, etc. You set ONE default model in the config, and OpenClaw uses it for all tasks (you can change it anytime).
npm install -g openclaw
~/.openclaw/config.json):
openclaw init
nano ~/.openclaw/config.json
"llm" section with this (paste your API key on the apiKey line):
{
"llm": {
"provider": "openai-compatible",
"baseUrl": "https://cccai.cfd/v1",
"apiKey": "sk-your-key-here",
"model": "claude-sonnet-4-6",
"stream": false,
"maxTokens": 4096
}
}
Ctrl+O, Enter, Ctrl+X) and run OpenClaw:
openclaw
claude-opus-4-7 — most capable, latestclaude-opus-4-6 — high capabilityclaude-sonnet-4-6 — balanced, fast ← default shown aboveclaude-haiku-4-5-20251001 — fastest, cheapestgpt-5.4 — OpenAI's latestChatBox is a desktop app for chatting with AI models. Works on Mac, Windows, and Linux.
Settings → AI ProviderOpenAI API or Custom Providerhttps://cccai.cfd/v1claude-sonnet-4-6LobeChat is a web-based AI chat interface. You can self-host it or use the online version at lobechat.com.
Settings → Language ModelOpenAI from the provider listAPI Key to your sk-... keyAPI Proxy URL to: https://cccai.cfd/v1claude-sonnet-4-6Cursor is an AI-powered code editor. Use CCCAI keys to power its AI features with Claude models.
Settings (⌘, or Ctrl+,) → ModelsOpenAI API Key onBase URL to: https://cccai.cfd/v1claude-sonnet-4-6Cline is a VS Code extension for AI-assisted coding. It works inside Visual Studio Code.
SettingsAPI Provider to OpenAI CompatibleBase URL: https://cccai.cfd/v1Model ID to e.g. claude-sonnet-4-6Claude Code is Anthropic's official command-line coding assistant. Normally it requires a Claude Max subscription ($100+/mo) — but you can run it on your CCCAI credits instead and pay per token. Your key has access to all Claude models (Sonnet, Opus, Haiku).
npm install -g @anthropic-ai/claude-code
export ANTHROPIC_BASE_URL="https://cccai.cfd" export ANTHROPIC_AUTH_TOKEN="sk-your-key-here" export ANTHROPIC_MODEL="claude-sonnet-4-6"
echo 'export ANTHROPIC_BASE_URL="https://cccai.cfd"' >> ~/.zshrc echo 'export ANTHROPIC_AUTH_TOKEN="sk-your-key-here"' >> ~/.zshrc echo 'export ANTHROPIC_MODEL="claude-sonnet-4-6"' >> ~/.zshrc source ~/.zshrc
~/.zshrc with ~/.bashrc.)claude
--model flag:
claude --model claude-opus-4-7
ANTHROPIC_MODEL is your default — Claude Code uses it for every session automatically. Switch defaults anytime by changing the env var, or override per-session with --model.
claude-opus-4-7 — most capableclaude-opus-4-6claude-sonnet-4-6 ← default shown above, great balanceclaude-haiku-4-5-20251001 — fastest, cheapestUsing Python or Node.js? Drop this snippet into your project.
from openai import OpenAI client = OpenAI( api_key="your-sk-key-here", base_url="https://cccai.cfd/v1" ) response = client.chat.completions.create( model="claude-sonnet-4-6", messages=[{"role": "user", "content": "Hello!"}], max_tokens=4096, stream=False ) print(response.choices[0].message.content)
import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'your-sk-key-here', baseURL: 'https://cccai.cfd/v1' }); const response = await client.chat.completions.create({ model: 'claude-sonnet-4-6', messages: [{ role: 'user', content: 'Hello!' }], max_tokens: 4096, stream: false }); console.log(response.choices[0].message.content);
These three values are required for your key to work. Instructions below match the app you selected above.
Before setting up any app, confirm your key is active and has remaining balance. Paste it into our balance checker.
Check your balance →