[PR #3335] [MERGED] [codex] Add Grok CLI subscription provider #5883

Closed
opened 2026-10-23 04:04:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3335
Author: @SpicyMarinara
Created: 7/7/2026
Status: ✅ Merged
Merged: 7/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/grok-cli-subscription-provider


📝 Commits (2)

  • 16390c8 Add Grok CLI subscription provider
  • a48305e Harden Grok CLI subscription requests

📊 Changes

22 files changed (+512 additions, -189 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+166 -154)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+1 -0)
📝 packages/server/src/db/schema/connections.ts (+1 -0)
📝 packages/server/src/routes/agents.routes.ts (+3 -3)
📝 packages/server/src/routes/chats.routes.ts (+3 -2)
📝 packages/server/src/routes/connections.routes.ts (+45 -2)
📝 packages/server/src/routes/conversation.routes.ts (+3 -3)
📝 packages/server/src/routes/encounter.routes.ts (+3 -5)
📝 packages/server/src/routes/game.routes.ts (+3 -4)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+3 -2)
📝 packages/server/src/routes/scene.routes.ts (+3 -4)
📝 packages/server/src/routes/translate.routes.ts (+3 -4)
📝 packages/server/src/services/llm/base-provider.ts (+2 -0)
📝 packages/server/src/services/llm/provider-registry.ts (+9 -0)
➕ packages/server/src/services/llm/providers/grok-subscription.provider.ts (+204 -0)
📝 packages/server/src/services/memory-recall-embedding.ts (+3 -3)
📝 packages/server/src/services/spotify/dj-mari-playlist.service.ts (+3 -3)
📝 packages/shared/src/constants/model-lists.ts (+17 -0)
📝 packages/shared/src/constants/providers.ts (+30 -0)

...and 2 more files

📄 Description

Summary

  • Adds a Grok CLI (Subscription) chat provider so users can route requests through a local grok CLI login for SuperGrok / X Premium+ accounts.
  • Hides API Key and Base URL fields for local-auth providers, including Claude Subscription, ChatGPT/Codex auth, and Grok CLI.
  • Reuses local-auth base URL handling across generation, conversation, game, scene, translation, agent, memory, and Spotify DJ paths.
  • Updates the v2.1.1 changelog.

Rationale

Claude Subscription already exposes a subscription-style local provider. Grok CLI users need the same kind of setup: install the CLI, log in locally, then select the provider in Marinara without entering API credentials that are not used.

No linked issue; this is a maintainer-requested provider feature.

Validation

  • pnpm check
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint

Manual Verification Needed

  • Manually verify a saved Grok CLI connection on a host with grok installed and grok login completed.
  • Manually verify Claude Subscription and ChatGPT/Codex auth no longer show API Key/Base URL fields in the Connections editor.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3335 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/7/2026 **Status:** ✅ Merged **Merged:** 7/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/grok-cli-subscription-provider` --- ### 📝 Commits (2) - [`16390c8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/16390c8bd68ecd3aa19b09ea6404f61accbefe7a) Add Grok CLI subscription provider - [`a48305e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a48305e6f59853bdb76fecf85428a8c78400b6de) Harden Grok CLI subscription requests ### 📊 Changes **22 files changed** (+512 additions, -189 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+166 -154) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+1 -0) 📝 `packages/server/src/db/schema/connections.ts` (+1 -0) 📝 `packages/server/src/routes/agents.routes.ts` (+3 -3) 📝 `packages/server/src/routes/chats.routes.ts` (+3 -2) 📝 `packages/server/src/routes/connections.routes.ts` (+45 -2) 📝 `packages/server/src/routes/conversation.routes.ts` (+3 -3) 📝 `packages/server/src/routes/encounter.routes.ts` (+3 -5) 📝 `packages/server/src/routes/game.routes.ts` (+3 -4) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+3 -2) 📝 `packages/server/src/routes/scene.routes.ts` (+3 -4) 📝 `packages/server/src/routes/translate.routes.ts` (+3 -4) 📝 `packages/server/src/services/llm/base-provider.ts` (+2 -0) 📝 `packages/server/src/services/llm/provider-registry.ts` (+9 -0) ➕ `packages/server/src/services/llm/providers/grok-subscription.provider.ts` (+204 -0) 📝 `packages/server/src/services/memory-recall-embedding.ts` (+3 -3) 📝 `packages/server/src/services/spotify/dj-mari-playlist.service.ts` (+3 -3) 📝 `packages/shared/src/constants/model-lists.ts` (+17 -0) 📝 `packages/shared/src/constants/providers.ts` (+30 -0) _...and 2 more files_ </details> ### 📄 Description ## Summary - Adds a Grok CLI (Subscription) chat provider so users can route requests through a local `grok` CLI login for SuperGrok / X Premium+ accounts. - Hides API Key and Base URL fields for local-auth providers, including Claude Subscription, ChatGPT/Codex auth, and Grok CLI. - Reuses local-auth base URL handling across generation, conversation, game, scene, translation, agent, memory, and Spotify DJ paths. - Updates the v2.1.1 changelog. ## Rationale Claude Subscription already exposes a subscription-style local provider. Grok CLI users need the same kind of setup: install the CLI, log in locally, then select the provider in Marinara without entering API credentials that are not used. No linked issue; this is a maintainer-requested provider feature. ## Validation - `pnpm check` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client lint` ## Manual Verification Needed - Manually verify a saved Grok CLI connection on a host with `grok` installed and `grok login` completed. - Manually verify Claude Subscription and ChatGPT/Codex auth no longer show API Key/Base URL fields in the Connections editor. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:04:48 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5883
No description provided.