togetherlink
Prime Agent compatibility guide · 8 min

Run Prime Agent on Together AI Models

Keep Prime Agent's persistent REPL, subagents, and long-running sessions while its selected model is served by Together AI.

By TogetherLink

TLtogetherlinkPERSISTENT AGENTS, TOGETHER MODELSRun Prime Agent onTogether AI models$tprime4 open models · Chat CompletionsPrime AgentPOWERED BY

The short answer

TogetherLink registers its curated catalog as an OpenAI-compatible Prime provider for this launch. Prime Agent still owns tools, sessions, the Python control environment, subagents, and background execution.

Install and launch

Start a first Together-backed session

1

Install Prime Agent

Use the upstream project's supported installer. See the Prime Agent quickstart for platform-specific options.

$curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh
2

Install and configure TogetherLink

Save a Together API key once. The selected model is billed by Together AI, not by the harness vendor.

Install TogetherLink
$curl -fsSL https://togetherlink.vercel.app/install.sh | bash
Save the API key
$togetherlink configure
3

Launch Prime Agent

Launch on Kimi K3
$tprime
Launch on GLM 5.2
$togetherlink --model zai-org/GLM-5.2 prime

What TogetherLink changes—and what it leaves alone

AreaBehavior
Model requestsThe harness calls Together AI directly through its OpenAI-compatible API.
Together keyProvided only to the launched process; it is not written into the generated provider metadata.
Harness statePrime's home, sessions, skills, memories, extensions, workers, and background services remain native and available.
Provider setupA credential-free provider extension is stored under ~/.togetherlink/prime-agent and activated only for the TogetherLink launch.
Usage reportingTogetherLink records launch lifecycle only. Token and cost totals are not available locally for this direct harness.

Prime Agent is powerful, but it is not a security sandbox

Prime Agent can execute model-generated Python and project commands with your user permissions. Use a reviewable worktree or external sandbox for untrusted repositories and instructions.

Keep the harness

Together changes the model, not the workflow

Persistent RLM

Use Prime's IPython control environment and recursive subagents with the selected Together model.

Long-running work

Detach, reattach, schedule, and continue daemon-backed sessions through Prime's native workflow.

Prime extensions

User extensions and ordinary Prime arguments remain available after TogetherLink pins the provider and model.

Model choice

Switch among the five curated Together models without editing Prime's normal configuration.

Curated model catalog

5 curated models, with Kimi K3 as the default

To override the model, put --model before the harness name. Arguments after the harness name belong to the underlying tool.

Kimi K3
moonshotai/Kimi-K3

Default · vision · reasoning · 1M context

GLM 5.2
zai-org/GLM-5.2

text · reasoning · 512K context

DeepSeek V4 Pro 0813
deepseek-ai/DeepSeek-V4-Pro-0813

text · reasoning · 1M context

Qwen 3.7 Max
Qwen/Qwen3.7-Max

vision · reasoning · 1M context

DeepSeek V4 Flash 0731
deepseek-ai/DeepSeek-V4-Flash-0731

text · reasoning · 1M context

Verify the launch before starting work

TogetherLink prints a launch line before the harness opens. For the default command, look for:

togetherlink ▸ Launching Prime Agent with Together AI.

Launching the upstream binary directly skips TogetherLink and uses that tool's normal provider configuration.

Common questions

FAQ

Can Prime Agent use Together AI models?+

Yes. TogetherLink activates a credential-free provider extension for the launch, pins Prime Agent to Together AI, and supplies the key only at runtime.

Does this replace Prime Agent's provider settings?+

No. The Together provider is activated with a launch flag and the generated extension lives under TogetherLink's own home. Prime Agent's normal home and provider configuration are not rewritten.

Do background agents keep working?+

Prime Agent's daemon-backed sessions and workers remain Prime features. TogetherLink stores stable provider metadata under its own home so a detached worker can resolve the provider without storing your API key there.

Can I use autonomous mode?+

Yes. Put Prime Agent flags after the harness name, for example: tprime --autonomous. TogetherLink strips conflicting provider, model, model-list, and API-key overrides but preserves other Prime Agent arguments.

Does TogetherLink report Prime token cost?+

No. Prime Agent talks to Together directly, so TogetherLink records session lifecycle but does not see the inference stream or produce local token and cost totals.

Related guides