For · Coding agents
Connect your coding agent to Synap
Use one OpenAI-compatible endpoint in OpenCode, Cline, Kilo Code or aider. Copy the setup for your tool, paste your Synap API key, and start with qwen3-coder-30b.
1. Get the key that matches how you want to start
Start free: sign in with Google or email, create a key, and use qwen3-coder-30b. The live allowance is checking… tokens and checking… requests per UTC day, with no card and no trial clock.
The free tier is paused right now. You can still create a key and add one-time credits.
Use paid models: sign in, open Add credits, and complete one top-up. Card checkout currently starts at checking…; TON and USDC currently start at checking…. One-time credits do not expire. After the balance lands, the same API key can call any model shown by /v1/models.
curl https://synap402.com/v1/chat/completions \
-H "Authorization: Bearer $SYNAP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen3-coder-30b", "messages": [{"role": "user", "content": "Write a function that reverses a linked list in Python."}]}'
Optional smoke test: replace *** in the request above with your key. A successful response proves the same endpoint and model used by every configuration below.
2. Copy the setup for your coding agent
Every setup uses the same endpoint and coding model. Replace the placeholder with the key from your account; never commit a real key to your repository.
OpenCode — opencode.json
Put this in the project root, export SYNAP_API_KEY, then run opencode.
{
"$schema": "https://opencode.ai/config.json",
"model": "synap/qwen3-coder-30b",
"providers": {
"synap": {
"name": "Synap",
"env": ["SYNAP_API_KEY"],
"package": "@opencode/ai/providers/openai-compatible",
"settings": { "baseURL": "https://synap402.com/v1" },
"models": {
"qwen3-coder-30b": { "name": "Qwen3 Coder 30B" }
}
}
}
}OpenCode walkthrough · fields checked against the OpenCode custom-provider documentation.
Cline — CLI or VS Code
Paste this command, or select OpenAI Compatible in Cline settings and enter the same base URL, key and model ID.
cline auth openai \
-b https://synap402.com/v1 \
-m qwen3-coder-30b \
-k sk-pool-...Cline walkthrough · fields checked against the Cline OpenAI Compatible documentation.
Kilo Code — ~/.config/kilo/kilo.json
Export SYNAP_API_KEY, save this provider, then select synap/qwen3-coder-30b. In VS Code, use Settings → Providers → Custom provider → OpenAI Compatible.
{
"$schema": "https://app.kilo.ai/config.json",
"model": "synap/qwen3-coder-30b",
"provider": {
"synap": {
"npm": "@ai-sdk/openai-compatible",
"name": "Synap",
"options": {
"baseURL": "https://synap402.com/v1",
"apiKey": "{env:SYNAP_API_KEY}"
},
"models": { "qwen3-coder-30b": { "name": "Qwen3 Coder 30B" } }
}
}
}Kilo Code walkthrough · fields checked against the Kilo OpenAI-compatible provider documentation.
aider — shell environment
Aider's OpenAI-compatible route uses OPENAI_API_BASE and requires the openai/ model prefix.
export OPENAI_API_BASE=https://synap402.com/v1
export OPENAI_API_KEY=sk-pool-...
aider --model openai/qwen3-coder-30b --no-show-model-warningsaider walkthrough · variables and model prefix checked against the aider OpenAI-compatible API documentation.
3. Know what the key can call
- The free allowance applies only to
qwen3-coder-30b. If a tool reportsinsufficient_creditsfor another model, add credits or switch back to that model ID. - For paid use, model availability and token prices come from /v1/models. The coding-model row currently reports checking… input and checking… output per 1M tokens.
- Data policy for the coding model: checking…
- The OpenAI-compatible base URL is exactly
https://synap402.com/v1; the chat endpoint is/chat/completions.