feat(ai): Authentication model for mokogitea-claude[bot] #369
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Define how mokogitea-claude[bot] authenticates with Anthropic to use Claude.
Parent Issue
#359
Research Findings (May 2026)
Anthropic banned OAuth for third-party apps as of February 2026. OAuth tokens from Free/Pro/Max plans are exclusively for Claude Code and claude.ai. Using them in any other product violates their Consumer Terms of Service.
This means MokoGitea CANNOT use subscription passthrough OAuth. The bot must use API keys.
References
What Works
Upcoming: Agent SDK Credits (June 15, 2026)
Starting June 15, 2026, Agent SDK and
claude -p(headless) usage on subscription plans draws from a new monthly Agent SDK credit, separate from interactive limits. If this applies to CI/bot usage under a Team plan, it could reduce API costs. Worth monitoring.Implementation Plan
Phase 1: API Key (Now)
Phase 2: Enterprise Auth Token
Phase 3: Monitor Agent SDK Credits
Settings UI
Org Settings > AI Integration:
Cost Estimates (API pricing)
Orgs can control costs via:
Individual Developer Experience
Developers running Claude Code locally in their repo clones:
Dependencies
feat(ai): OAuth authentication for Claude Code (subscription-based, no API credits)to feat(ai): Authentication model for mokogitea-claude[bot]