mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1134] [Feature]: Claude Subscription Docker setup has missing stairs for new users #561
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#561
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @aeriondyseti on GitHub (May 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1134
What problem does this solve?
Marinara has a built-in Claude Subscription provider that supports a long-lived OAuth token via
CLAUDE_CODE_OAUTH_TOKEN. The reference docs (docs/CONFIGURATION.md) explain bothCLAUDE_CODE_OAUTH_TOKENandCLAUDE_CONFIG_DIRclearly. But for a new user setting up via Docker, the path from "I want to use my Claude Pro/Max subscription" to "it works" has multiple unmarked stairs:.env.examplehas zero mention ofCLAUDE_CODE_OAUTH_TOKENorCLAUDE_CONFIG_DIR. Users following the standard "copy.env.exampleto.envand edit" pattern never see Claude Subscription as a configurable option.docker-compose.ymldoesn't pass either variable through to the container. Even users who learn about the variable fromCONFIGURATION.mdcan't actually use it via the standard compose without a customdocker-compose.override.yml.Under default Docker config, the provider's failure mode is
Not logged in · Please run /login. That phrasing pushes users toward the credentials-file path (~/.claude/credentials.json,claude logininteractively, mount troubleshooting) rather than the much simpler token-based fix.Net result: a well-documented feature is effectively invisible to anyone following the standard installation flow. I hit this myself today setting Marinara up on a LAN lab server — once I knew the token-based path existed, the fix took 30 seconds, but discovering it took an hour of source-reading.
Proposed solution
Surface both env vars as first-class options in the standard install flow:
docker-compose.yml: passCLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-}andCLAUDE_CONFIG_DIR=${CLAUDE_CONFIG_DIR:-/app/data/claude-config}through to the container. The:-default keeps the change no-op for users who don't set either; the${...}substitution accepts either a value from.env(the canonical Marinara config path) or a shellexport..env.example: add a commented-empty section with the full token-generation walkthrough inline (npm i -g @anthropic-ai/claude-code,claude login,claude setup-token, paste below orexportto shell). Place it near the existing third-party provider entries (Giphy, Spotify) so it's discoverable by anyone reading top-to-bottom.24 insertions across 2 files, no existing behavior changes. A small follow-up could add a brief "Quickstart: Claude Subscription via Docker" callout to
docs/installation/containers.md, but the.env.example+ compose changes carry most of the discoverability win on their own.Alternatives considered
CLAUDE_CODE_OAUTH_TOKENas an alternative. The SDK is an upstream Anthropic dependency, so this would require coordination outside the repo.~/.claude/from host: works for the CLI but the Agent SDK still uses the bundled subprocess, and the permission gotchas (container-root writing to user-owned host dir) make it brittle for headless setups..env.exampleand compose untouched. Less effective — users who skip docs and go straight to.envstill wouldn't see it.The proposed solution is the cheapest path that closes the discoverability gap end-to-end.
Additional context
packages/server/src/services/llm/providers/claude-subscription.provider.ts@anthropic-ai/claude-agent-sdkTemplate check
@cha1latte commented on GitHub (May 25, 2026):
Triage note: labeling this as
normal-scopebecause the request is a focused Docker discoverability fix for existing Claude Subscription environment variables, limited to compose/env-example setup paths.The least risky next step is to keep it in the normal enhancement backlog and verify the Docker token path without expanding into broader Claude auth UX.
@cha1latte commented on GitHub (May 26, 2026):
closed in #1133