Repository navigation
Labels
Description
Summary
inference-gateway/infer-action gained a Claude Code subscription mode
(inference-gateway/infer-action#132): run the agent on a Claude Max/Pro subscription
instead of pay-per-token provider API keys, via use-claude-code-subscription: true
plus a claude-code-oauth-token. The docs site should document this mode.
What to cover:
- Enabling the mode (
use-claude-code-subscription: true) and the new inputs:
claude-code-oauth-token,claude-code-cli-version,claude-code-max-output-tokens,
claude-code-thinking-budget. - Minting the OAuth token with
claude setup-token(formatsk-ant-oat01-..., valid
about 1 year, requires Claude Pro/Max), storing it as theCLAUDE_CODE_OAUTH_TOKEN
repository secret, and rotating it before expiry. - No provider API key is needed in this mode; a stray
ANTHROPIC_API_KEYis ignored
(stripped by the CLI) so it cannot reroute to paid API billing. - The model (and any
/modeloverride) must be a bare Claude id (for example
claude-sonnet-4-5-20250929), not a provider-prefixed id like
anthropic/claude-opus-4-8. max-turnsbounds both the Infer agent loop and the Claude CLI turn limit.- Current metrics caveat: tool-call counts and failures render today; token usage and
per-session cost are pending an upstream CLI fix (inference-gateway/cli) and render as
unavailable until then. - Limitations: Claude models only; image inputs are dropped; prompt caching is
unavailable. Fork PRs do not run this mode because the secret is not exposed to fork
workflows.
Affected pages: the infer-action action documentation (inputs reference plus a new
"Claude Code subscription mode" section/page). Include the example workflow shipped at
examples/claude-code-subscription.yml.
Link: inference-gateway/infer-action#132 and its implementing PR.
Acceptance Criteria
- A "Claude Code subscription mode" section or page documents enabling the mode,
minting/storing/rotating the OAuth token, and the no-provider-key requirement. - The bare-Claude-id requirement and the metrics caveat (tokens/cost pending the
upstream CLI fix) are documented. - The new inputs appear in the infer-action inputs reference.
- An example workflow is included.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Jun 24, 2026
Source PR: inference-gateway/infer-action#133 (adds the Claude Code subscription mode this ticket documents).
edenreich commentedon Jun 24, 2026
@claude Can you document it?
inference-gateway-maintainer commentedon Jun 24, 2026
Claude finished @edenreich's task in 8m 41s —— View job •
docs/issue-276-20260624-1642• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-276-20260624-1642?quick_pull=1&title=Issue%20%23276%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23276%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documenting Claude Code subscription mode for infer-action
github-action.mdand sidebar configaction.yml+ example workflow for accuracySummary
Added a Claude Code subscription mode section to the GitHub Action reference page (
github-action.md). It documents:use-claude-code-subscription: true+claude-code-oauth-token, the gatedclaudeCLI install step, and thatINFER_GATEWAY_RUN=false/ no provider key is used (a strayANTHROPIC_API_KEYis stripped by the CLI).claude setup-token(sk-ant-oat01-..., ~1yr, needs Claude Pro/Max), storing as theCLAUDE_CODE_OAUTH_TOKENrepo secret, and rotating before expiry.claude-sonnet-4-5-20250929, notanthropic/claude-opus-4-8) and themax-turnsdual-bound note.examples/claude-code-subscription.yml.All four acceptance criteria are covered. Verified with
bun run lint:md,bun run format:check, andbun run build(all green), and confirmed the new content is present in the server-rendereddistHTML.Note: the feature is merged to
infer-action@mainbut not yet in a tagged release (latestv0.17.2), so examples use@mainwith a release-status callout, matching the upstream example file. The docs should be re-pinned to the next tag once it ships.Pull request: #277
--- · branch
docs/issue-276-20260624-1642inference-gateway-releaser commentedon Jun 24, 2026
🎉 This issue has been resolved in version 0.6.113 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀