Netclode supports multiple coding agent SDKs. Pick the one that fits your workflow.
| SDK | Provider | Authentication | Key Features |
|---|---|---|---|
| Claude Agent | Anthropic | API key | Extended thinking, native tools, session persistence |
| OpenCode | Multi-provider | API keys | Anthropic, OpenAI, Mistral support |
| Copilot | GitHub / Anthropic | GitHub token or API key | Premium quota tracking, billing multipliers |
| Codex | OpenAI | API key or ChatGPT OAuth | Reasoning effort levels, thread persistence |
Direct integration with Anthropic's Claude via @anthropic-ai/claude-agent-sdk.
Auth: ANTHROPIC_API_KEY
Models:
claude-opus-4-5-20251101(default) - most capable, extended thinkingclaude-sonnet-4-0- balanced
Features: Extended thinking, native tools, session persistence, interrupt support.
# .env
ANTHROPIC_API_KEY=sk-ant-api03-xxxMulti-provider support through the OpenCode CLI in server mode.
Auth: Set whichever API keys you need:
ANTHROPIC_API_KEY=sk-ant-xxx
OPENAI_API_KEY=sk-xxx
MISTRAL_API_KEY=xxx
ZAI_API_KEY=xxx # For Z.AI GLM-4.7 modelsModels: Format is provider/model-name:
anthropic/claude-sonnet-4-0(default)anthropic/claude-sonnet-4-5-20250514(with thinking)openai/gpt-4omistral/mistral-large-latestzai/GLM-4.7(via Z.AI - cheaper alternative)
Thinking budgets: high (16k tokens), max (32k tokens)
Uses @github/copilot-sdk with two backend options.
Uses your Copilot subscription. Create a fine-grained PAT at https://github.com/settings/tokens?type=beta with Copilot read-only permission.
GITHUB_COPILOT_TOKEN=github_pat_xxxIncludes quota tracking and billing multipliers (0.33x to 50x depending on model).
Use Anthropic API directly without GitHub subscription:
ANTHROPIC_API_KEY=sk-ant-xxxUses @openai/codex-sdk.
OPENAI_API_KEY=sk-xxxUse your ChatGPT subscription instead of API credits:
netclode auth codexOpens browser flow and outputs tokens for your .env.
codex-mini-latest- fastgpt-5-codex- most capable
Controls how much "thinking" the model does: minimal, low, medium (default), high, xhigh. Higher = better quality but more latency.
Specify SDK and model when creating a session:
netclode sessions create --repo owner/repo --sdk claude
netclode sessions create --repo owner/repo --sdk opencode --model anthropic/claude-sonnet-4-5-20250514
netclode sessions create --repo owner/repo --sdk copilot
netclode sessions create --repo owner/repo --sdk codex --model codex-mini-latestOr use the iOS app model picker.
| Variable | SDK | Description |
|---|---|---|
ANTHROPIC_API_KEY |
Claude, OpenCode, Copilot (BYOK) | Anthropic API key |
OPENAI_API_KEY |
OpenCode, Codex | OpenAI API key |
MISTRAL_API_KEY |
OpenCode | Mistral API key |
ZAI_API_KEY |
OpenCode | Z.AI API key (for GLM-4.7 models) |
GITHUB_COPILOT_TOKEN |
Copilot | GitHub PAT with copilot scope |
CODEX_ACCESS_TOKEN |
Codex | ChatGPT OAuth access token |
CODEX_ID_TOKEN |
Codex | ChatGPT OAuth ID token |
CODEX_REFRESH_TOKEN |
Codex | ChatGPT OAuth refresh token |
Run local LLMs with GPU acceleration. Requires NVIDIA GPU and Ollama deployment.
cd infra/ansible
DEPLOY_HOST=your-server NVIDIA_ENABLED=true OLLAMA_ENABLED=true \
ansible-playbook playbooks/site.yamlSee infra/ansible/README.md for full setup.
# Pull a model
kubectl --context netclode -n netclode exec -it deploy/ollama -- ollama pull qwen2.5-coder:32b
# Use in session
netclode sessions create --repo owner/repo --sdk opencode --model ollama/qwen2.5:7b-instructModels show up in the iOS app picker once Ollama is running.
qwen2.5-coder:32b-instruct-q4_K_M- best codingdeepseek-coder-v2:16b- fast codingmistral:7b-instruct- fast general