Outside agents
Agents that Supaterm did not start can work with an environment through its MCP server. They can read projects and threads, start and message threads, and check which providers and models are available. This covers Claude Code or Codex in your own terminal, ChatGPT, and bots that support MCP. Each agent signs in once, and you choose what it may do.
Get the MCP URL
In Settings → Environments, open a saved environment’s menu and choose
Copy MCP URL. The URL is the environment’s address followed by /mcp, for
example:
https://<environment-address>/mcp
The copied URL uses the route this device is connected over, so an agent on the same device can reach it.
- An agent on your own computers can use
localhoston the host or anyhttpsaddress, such as built-in Tailscale. Signing in sends the agent’s credentials to the environment, and agents only do that overhttpsor tolocalhost. A plain-httpLAN or Tailscale address, likehttp://100.x.y.z:3773, lets an agent find the environment but not finish signing in. - A hosted agent, such as ChatGPT or a bot running in the cloud, must reach the environment from the internet. Use an HTTPS address exposed by your host or reverse proxy. A Tailscale address only works from your own tailnet.
Approve a sign-in
The first time an agent connects, it opens a sign-in page on the environment. The page names the agent and where its access goes:
- For an agent on your computer, approval returns to a
localhostaddress on the computer that opened the page. - For a hosted agent, approval goes to that service, such as
chatgpt.com. Anyone who runs that service gets the access.
Only approve a sign-in you just started. To approve, enter a pairing code from
Settings → Sharing & access or from supaterm auth pairing create on the host. A
browser already signed in to the environment with permission to manage access
can approve without a code.
Then choose what the agent may do:
- Read only is the default. The agent can read projects and threads and see the available providers and models. It cannot change anything.
- Supervised through Full access also let it start, message and stop threads in every project. A thread it starts or steers cannot run with more permissions than the mode you chose.
A code from Use in another app (MCP) names its level, so the page does not ask again.
Give an app a sign-in code
In Settings → Sharing & access on web or desktop, choose Use in another app (MCP) under Authorized clients. Add the URL to the app, pick what it may do (Read only is selected) and choose Get code. Enter the code on the sign-in page the app opens. It approves that one sign-in at the level you picked, once, and expires soon.
To reach your other machines through the same connection, link them. A call the app sends on keeps the lower of its own level and the link’s.
What outside agents can call
Some tools only work for an agent running inside a Supaterm thread, because they act as that thread: subagents, secret requests, rendered HTML, the browser preview, devices, and worktree handoff. They still appear in an outside agent’s tool list, but calling one returns an error saying it needs an agent running inside Supaterm.
- To hand off work, start a thread with
supaterm_thread_launch, then follow it withsupaterm_thread_waitorsupaterm_thread_read, instead ofcreate_threadsordelegate_task. - Tools that default to the caller’s own project or thread need an explicit
projectIdorthreadId. - To list threads across projects, call
supaterm_thread_listwithallProjects: true, or usesupaterm_thread_search.
Claude Code
claude mcp add --transport http supaterm https://<environment-address>/mcp
claude mcp login supaterm
claude mcp login opens the sign-in page in your browser. On a machine
without a browser, add --no-browser, open the printed URL elsewhere, and
paste the final URL back when asked. claude mcp list shows supaterm as connected
once you approve.
Codex
codex mcp add supaterm --url https://<environment-address>/mcp
codex mcp login supaterm
codex mcp login --no-browser prints the sign-in URL instead of opening it.
codex mcp list shows supaterm with OAuth once you approve.
ChatGPT
Add the environment as a custom MCP app in ChatGPT’s apps settings:
- Create a new app or plugin with a custom MCP server.
- Set the server URL to
https://<environment-address>/mcp, using its publicly reachable HTTPS address. - Choose OAuth for authentication. ChatGPT discovers the rest; you do not need a client ID or secret.
- Create the app, then approve the sign-in page that opens.
Other agents and bots
Any agent that supports remote MCP servers over HTTP with OAuth can connect. Give it the MCP URL and choose OAuth, and the agent finds the sign-in settings itself. Agents without OAuth support cannot connect.
Scripts on the host
On the machine that runs the environment, supaterm thread uses the same tools
without a sign-in:
id=$(supaterm thread start . "Find why the tests are slow")
supaterm thread send "$id" "Now fix it" --wait
supaterm thread show "$id"
supaterm thread list
. means the project that contains the current folder, or a git worktree of
its repository; a project id also works. A new thread uses the project’s
default model and permission mode, and runs in the project folder unless you
pass --worktree <base-branch>. Its title is the message’s first line, or
--title; add --generate-title to have it named from the message, as threads
started in the app are. send never interrupts: a busy thread gets the message
as its next turn. Pass - as the message to read it from stdin.
To choose the model, pass --provider <instance-id> --model <slug>. Add
--option id=value for each model option. For reasoning effort, Codex uses
--option reasoningEffort=high, while Claude uses --option effort=high.
Option ids and allowed values depend on the provider and model; use those
reported by orchestrator_capabilities. true and false set on/off options.
--wait prints the agent’s reply. It exits 1 when the run fails or stops, and
2 when the agent waits for an answer you give in the app. Add --json for a
result that always includes the thread id.
The CLI must come from the same Supaterm release as the running server. After an update, restart Supaterm or update the CLI before you run it again.
Remove an agent
Approved agents appear under Settings → Sharing & access like other clients. Revoke one there to cut off its access immediately. A sign-in lasts 30 days; after that the agent asks you to approve it again.