TogetherLink is currently in beta. Commands, routing behavior, and the
available model list may change. Report issues or give feedback on
GitHub.
Requirements
- A Together AI API key.
- The coding tool or desktop app you want to use, already installed.
- Bash and curl to run the installer. On Linux, installing Bun also requires unzip.
- macOS for the Claude Desktop and ChatGPT Desktop integrations.
- Optional: an Anthropic API key. The auto router uses it to send difficult requests to Claude Opus, billed to the Anthropic account behind the key. Without one, every request is served by a Together AI model.
Get started
Install TogetherLink:tlink alias runs the same command.
Choose the tool to launch: Claude Code, Claude Desktop, ChatGPT Desktop, or Codex. If no Together API key is configured, the launcher prompts you for one.
Arguments after the tool name pass through to the harness. For example, togetherlink claude -p "hello" runs Claude Code in print mode.
Every session starts with a routing banner, such as togetherlink ▸ Claude Code → Auto router., so you can confirm which route is serving the session.
You can also launch an app directly:
Configure your API key
Save your Together API key:How the auto router works
Sessions use the virtualauto model by default. For each request, TogetherLink’s cloud gateway classifies the prompt and routes it to the model best suited to handle it:
- Straightforward requests: Served by Together AI models such as GLM 5.3, billed at standard serverless rates.
- More difficult requests: Served by Claude Opus through Anthropic, billed to the Anthropic account behind your
ANTHROPIC_API_KEY.
Choose a model
List available models, context limits, and pricing:togetherlink command and pass --main with the model ID before the tool name:
You can also switch models during a session with your harness’s
/model command. The menu maps the harness’s model tiers to Together AI models. In Claude Code, Opus runs Kimi K3, Fable runs GLM 5.3, Sonnet runs GLM 5.3 Flash, and Haiku runs DeepSeek V4.1 Flash.
Desktop apps expose their own model menus, which can differ from the terminal tools.
Usage on Together AI models is billed at standard serverless rates for the model that serves each request. See serverless models for current pricing.
How it works
TogetherLink configures each app to connect directly to its hosted gateway, which serves each request from a Together AI model or from Anthropic based on the selected route. Your normal configuration files remain unchanged.- Claude Code and Codex CLI: Receive launch-specific configuration for each session.
- Claude Desktop and Cowork: Use a persistent TogetherLink-owned third-party profile, with backups for reversible setup.
- ChatGPT Desktop: Uses a dedicated profile at
~/.codex-togetherlink. TogetherLink reads but never rewrites your normal~/.codexhome.
Claude Desktop and Cowork
Enable the integration:ChatGPT Desktop
Launch ChatGPT Desktop with your TogetherLink profile:~/.codex home remains untouched.
Codex CLI
Launch Codex in your terminal:Run headless
TogetherLink works in non-interactive contexts, so scripts and agents can drive a harness. Run it in print mode:Generate images
Sessions launched through TogetherLink include an image generation skill. Ask for an image, and your agent generates or edits it with image models hosted by Together AI:togetherlink usage, tracked separately from token usage.
View usage
Each session prints a cost summary when it exits. To see spend tracked by the cloud gateway across sessions, run:Update TogetherLink
TogetherLink periodically checks for updates. You can also update manually:Troubleshooting
- No API key configured: Run
togetherlink configureor exportTOGETHER_API_KEY. - Claude Code is not installed: TogetherLink does not install Claude Code. Install it with the command printed in the error, then retry.
- A headless run hangs: Append
< /dev/nullto close stdin. - Restore your original setup: Stop using
togetherlinkand launch your tool directly. TogetherLink never modifies your normal configuration files.
Related resources
TogetherLink on GitHub
Source code, issues, and release history.
Together AI models
Browse every model hosted on Together AI.