Skip to content

docs: document Claude Code subscription mode for infer-action - #277

Merged
edenreich merged 1 commit into
mainfrom
docs/issue-276-20260624-1642
Jun 24, 2026
Merged

edenreich merged 1 commit into
mainfrom
docs/issue-276-20260624-1642

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Documents the new Claude Code subscription mode in infer-action (run the agent on a Claude Max/Pro subscription instead of pay-per-token provider API keys), on the GitHub Action reference page (github-action.md).

What was added:

  • New top-level "Claude Code subscription mode" section covering: enabling the mode (use-claude-code-subscription: true plus claude-code-oauth-token), the gated claude CLI install step, and the no-provider-key behavior (a stray ANTHROPIC_API_KEY is stripped by the CLI).
  • Minting/storing/rotating the OAuth token: claude setup-token (format sk-ant-oat01-..., about 1 year validity, requires Claude Pro/Max), the CLAUDE_CODE_OAUTH_TOKEN repository secret, and rotation before expiry.
  • A dedicated inputs table for the five new inputs (use-claude-code-subscription, claude-code-oauth-token, claude-code-cli-version, claude-code-max-output-tokens, claude-code-thinking-budget), plus a pointer to it from the main Inputs section (mirroring the existing OpenTelemetry pattern).
  • The bare-Claude-id requirement (model and any /model override must be a bare id like claude-sonnet-4-5-20250929, not anthropic/claude-opus-4-8).
  • The max-turns dual-bound note (Infer agent loop plus Claude CLI turn limit).
  • The metrics caveat: tool-call counts and failures render today; token usage and per-session cost are omitted pending the upstream fix in [FEATURE] Surface token usage and cost in the Claude Code stream adapter cli#649.
  • Limitations: Claude models only, image inputs dropped, prompt caching unavailable, fork PRs do not run this mode (secret not exposed to forks).
  • The full example workflow from examples/claude-code-subscription.yml.

Notes

  • The feature is merged to inference-gateway/infer-action@main but is not yet in a tagged release (latest is v0.17.2), so the examples use @main with a release-status callout, matching the upstream example file. Pin to the next tag once cut.
  • Verified locally: bun run lint:md, bun run format:check, and bun run build all pass, and the new section, inputs, OAuth secret, the cli#649 link, and the bare Claude id are present in the server-rendered dist HTML.

Source: inference-gateway/infer-action#132 (feature) and inference-gateway/infer-action#133 (implementation).

Closes #276

@edenreich edenreich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@edenreich
edenreich merged commit 03c67da into main Jun 24, 2026
1 check passed
@edenreich
edenreich deleted the docs/issue-276-20260624-1642 branch June 24, 2026 16:55
inference-gateway-releaser Bot added a commit that referenced this pull request Jun 24, 2026
## [0.6.113](0.6.112...0.6.113) (2026-06-24)

### 👷 CI

* **deps:** upgrade actions/checkout from v6.0.3 to v7.0.0 across workflows ([f78b17d](f78b17d))
* **infer:** centralize infer.yml + sync .infer config ([#260](#260)) ([9df8702](9df8702))
* **release:** update GitHub App user ID handling and configure Git settings ([a480285](a480285))

### 📚 Documentation

* add .agents/skills open standard location ([#264](#264)) ([f3ee843](f3ee843))
* add cloudflare d1 conversation storage to cli.md ([#274](#274)) ([00f8698](00f8698))
* document Claude Code subscription mode for infer-action ([#277](#277)) ([03c67da](03c67da))
* document cloudflare workers deployment target in adl-cli ([#248](#248)) ([b530f13](b530f13))
* document MCP_INCLUDE_TOOLS/MCP_EXCLUDE_TOOLS config ([#253](#253)) ([0b37b2a](0b37b2a))
* document new chat completion request params in go sdk ([#254](#254)) ([5305291](5305291)), closes [#252](#252)
* document new chat completion request params in python sdk ([#255](#255)) ([a7f1509](a7f1509))
* document new chat completion request params in rust sdk ([#256](#256)) ([3dfd850](3dfd850))
* document new chat completion request params in typescript sdk ([#257](#257)) ([7c6cb94](7c6cb94))
* document parallel_tool_calls request parameter ([#258](#258)) ([ecbcf2e](ecbcf2e))
* update schema version and codex version in manifest files ([ac0ae96](ac0ae96))

### 🔧 Miscellaneous

* **deps-dev:** bump @types/node from 25.9.3 to 26.0.0 in the bun group ([#267](#267)) ([00f21a8](00f21a8))
* **deps:** bump claude-code-action v1.0.150 -> v1.0.152 ([#259](#259)) ([8a40c05](8a40c05))
* **deps:** bump infer CLI v0.121.1 -> v0.122.2, infer-action v0.15.1 -> v0.15.4 ([#265](#265)) ([4456d69](4456d69))
* **deps:** bump inference-gateway/.github/.github/workflows/claude.yml ([#266](#266)) ([6be8146](6be8146))
* **infer:** remove default configuration ([5ee4690](5ee4690))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.6.113 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document Claude Code subscription mode for infer-action

1 participant