mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #243] [MERGED] feat(connections): add Claude (Subscription) provider via Claude Agent SDK #4528
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#4528
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/243
Author: @LukaTheHero
Created: 4/26/2026
Status: ✅ Merged
Merged: 4/26/2026
Merged by: @LukaTheHero
Base:
main← Head:feat/claude-subscription-provider📝 Commits (2)
d38e4edfeat(connections): add Claude (Subscription) provider via Claude Agent SDKcf39735Potential fix for pull request finding 'Useless conditional'📊 Changes
14 files changed (+1165 additions, -18 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/FAQ.md(+1 -1)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+70 -15)📝
packages/server/package.json(+1 -0)📝
packages/server/src/db/schema/connections.ts(+12 -1)📝
packages/server/src/routes/connections.routes.ts(+33 -1)📝
packages/server/src/services/llm/provider-registry.ts(+9 -0)➕
packages/server/src/services/llm/providers/claude-subscription.provider.ts(+226 -0)➕
packages/server/test/claude-subscription-provider.test.ts(+223 -0)📝
packages/shared/src/constants/model-lists.ts(+16 -0)📝
packages/shared/src/constants/providers.ts(+12 -0)📝
packages/shared/src/schemas/connection.schema.ts(+1 -0)📝
packages/shared/src/types/connection.ts(+1 -0)📝
pnpm-lock.yaml(+559 -0)📄 Description
…t SDK
Routes chat through the locally-installed Claude Agent SDK so requests bill against the user's Anthropic Pro / Max subscription instead of an sk-ant-* API key. Same auth mechanism Anthropic-endorsed integrations like Visual Studio Code, Cursor, and Zed use — no proxy or third-party shim is involved.
Why: Marinara users with paid Claude subscriptions previously had no path to use them inside Marinara without buying additional API credits on top of the subscription they already pay for. The Agent SDK is Anthropic's public, documented mechanism for this exact use case.
Changes:
claude_subscriptionprovider registered in shared types, providers constant, model lists, Zod schema, and DB schema enumClaudeSubscriptionProviderwrappingquery()from@anthropic-ai/claude-agent-sdk— streams text deltas, forwards thinking content, defaults to adaptive thinking on Opus 4.7+Built-in agent tools (Bash, Read, Write, etc.) are explicitly disabled — Marinara has its own agent/tool layer. Embeddings are not supported on this provider; users must configure a separate connection for them.
Prerequisites for the host running Marinara:
Why this change
What changed
Validation
Summary by CodeRabbit
Release Notes
New Features
claude loginauthenticationDocumentation
Summary by CodeRabbit
Release Notes
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.