CLI Mode
CLI modes inject their own system prompts and route requests through third-party CLI tools. Some providers actively block automated or programmatic use — this may conflict with their terms of service. Use responsibly and at your own risk.
CLI mode lets agents use cloud LLMs without an API key by routing calls through the respective official CLI tools. This is ideal for users who already have a paid subscription to Claude, Gemini, or GitHub Copilot.
CLI mode requires the corresponding CLI tool to be installed and authenticated on the machine running Synapse.
Claude CLI
Model: cli.claude
Uses the official claude CLI (part of Claude Code / Anthropic's CLI tools). Routes requests through your existing Claude subscription.
Setup:
- Install Claude Code: claude.ai/code
- Authenticate:
claude auth login - In Synapse, set the model to
cli.claude
Gemini CLI
Model: cli.gemini
Uses the official gemini CLI. Routes requests through your Google account's Gemini quota.
Setup:
- Install:
npm install -g @google/gemini-cli - Authenticate:
gemini auth login - In Synapse, set the model to
cli.gemini
OpenAI Codex CLI
Model: cli.codex
Uses the OpenAI Codex CLI. Routes requests through your OpenAI subscription.
Setup:
- Install:
npm install -g @openai/codex - Authenticate with your OpenAI credentials
- In Synapse, set the model to
cli.codex
GitHub Copilot CLI
Model: cli.copilot
Uses GitHub Copilot's underlying model access through the Copilot CLI. Supports multiple model variants.
Models:
| Model | Description |
|---|---|
cli.copilot | Default Copilot model |
cli.copilot.claude-sonnet-4-5 | Claude Sonnet via Copilot |
cli.copilot.claude-opus-4-5 | Claude Opus via Copilot |
cli.copilot.claude-haiku-4-5 | Claude Haiku via Copilot |
Setup:
- Install GitHub CLI:
brew install gh/ cli.github.com - Authenticate:
gh auth login - Install Copilot extension:
gh extension install github/gh-copilot - In Synapse, set the model to
cli.copilot
CLI mode limitations
- Slower than direct API calls — CLI tools add overhead
- Rate limits apply based on your subscription plan
- No streaming — responses are returned after completion
- Context limits vary by CLI tool version
- Not suitable for high-throughput production workloads — use direct API keys instead
CLI mode is best for personal use, development, and experimentation where you don't want to manage API keys separately.