Use a subscription, not API keys
Agent steps can run on a subscription you already pay for, as long as the step uses the runtime that plan’s owner allows.
| Plan | Step executor | Profile model.provider | Credential |
|---|---|---|---|
| ChatGPT Plus, Pro, Business | opencode | openai-chatgpt | openai-chatgpt-auth, from azhi chatgpt login |
| Claude Pro, Max | claude-agent-sdk | anthropic | A plan token from claude setup-token |
| GitHub Copilot | opencode | github-copilot | github-copilot-token, from azhi copilot login |
npx azhi chatgpt login # open the link, enter the code, sign in with your ChatGPT accountnpx azhi chatgpt check # renews the sign-in once and says whether it worksmodel: {provider: openai-chatgpt, name: default, credential: openai-chatgpt-auth}defaultis the server’sAZHI_CHATGPT_MODEL(gpt-5.5unless set).- Azhi renews the sign-in itself when the access token has less than an hour left.
- OpenAI replaces the refresh token on every renewal. Give Azhi its own sign-in. Do not paste Azhi’s into your own OpenCode or Codex, or theirs into Azhi, or each cancels the other.
- Cost is recorded as 0 (
reported, “ChatGPT plan”). Token counts are still recorded. When the plan limit is reached the step fails and says so.
npx azhi copilot login # or import an existing sign-innpx azhi copilot check # asks GitHub whether the saved sign-in worksnpx azhi copilot quota # your AI-credit allowance, as VS Code shows itmodel: {provider: github-copilot, name: default}- Steps count in AI credits against the monthly pool.
- Model names such as
claude-opus-5.5orgpt-5.6-terramust exist on your plan, or the step fails at start. Usedefaultto fall back to one model. - The PR review workflow runs on this.
claude setup-token # on any machine with Claude Code; prints sk-ant-oat...npx azhi secret set claude-plan-token --value <token># profiles/<name>@1.yamlmodel: {provider: anthropic, name: default, credential: claude-plan-token}# workflow.yaml, on the agent nodeexecutor: claude-agent-sdk- Anthropic’s terms do not allow a Claude plan in third-party tools such as OpenCode, but do allow it through the Agent SDK, for your own use.
- Azhi refuses a plan token on
model-agentandopencodesteps. workspacecheckouts andharness.opencodesetups are OpenCode-only, so the PR review reviewers cannot move to a Claude plan.- Usage counts against the plan’s limits. Cost is unavailable unless you set
pricingin the profile.
You can also sign in from Mission Control: Secrets › Sign in with ChatGPT / GitHub Copilot. azhi signin list
shows every sign-in the workspace has, and how each was supplied.