How it works
The pattern is the same for all three agents:- Generate the credential once on your laptop (or any machine with a browser).
- Store it as a Domino user environment variable. In the Domino UI, go to Account > Account Settings > User environment variables. User-level variables follow you across all projects and workspaces (unlike project-level variables), and Domino injects them into every run you start.
- If the CLI needs a file on disk or first-run state patched, add a snippet to the Compute Environment’s pre-run script (Environments > Edit Definition > Run Setup Scripts). This runs at workspace startup, after the user environment variables are already injected. A user or admin adds this to the environment once.
- Claude Code
- OpenAI Codex
- GitHub Copilot CLI
Claude Code uses a single long-lived OAuth token that works across many
workspaces at once.
-
Generate the token once on your laptop:
The command walks you through OAuth login and prints a token that starts with
sk-ant-oat01-.... It is not saved anywhere, so copy it. The token is valid for roughly a year and auto-refreshes. -
In Account Settings > User environment variables, add:
- Name:
CLAUDE_CODE_OAUTH_TOKEN - Value:
sk-ant-oat01-...
- Name:
- That’s it. The Claude Code settings shipped with the Domino Standard Environment handle first-run onboarding, so the token is picked up automatically in every new workspace.
Quick comparison
Use with Domino LLM Gateway 2.0
Coding agents can be used in concert with the new Domino LLM Gateway 2.0 to centrally govern how they call external Large Language Model providers, alongside the subscription-reuse pattern above. LLM Gateway 2.0 is currently in early access and distributed as a separately deployed app. Contact your Domino field representative for details on how to route your coding agent traffic through it.Next steps
- Custom environments (advanced): Bundle CLI tools, MCP servers, or a different coding agent into a Compute Environment.
- User Environment Variables: Reference for creating, updating, and deleting user-level variables.
- Edit an environment definition: Where pre-run scripts live in the Compute Environment definition.