provider: the Grok subscription is called Grok (SuperGrok) — the plan xAI sells, so it reads as the account it signs into; Grok Build stays the name of the agent, the grok CLI the subscription runs through

This commit is contained in:
yetone
2026-09-25 18:33:21 +08:00
parent f7112a9e9d
commit 032bcfc8b0
8 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ Code process; Pi, OpenCode and every other agent use this path automatically.
The generated harness stays out of Anthropic's system-prompt classifier while
its instructions remain part of the user context. This requires Claude Code
to be installed and signed in.
Cursor, Grok Build and Devin subscriptions likewise run through their own CLIs —
Cursor, Grok (SuperGrok, through Grok Build) and Devin subscriptions likewise run through their own CLIs —
none of them has an endpoint a borrowed key can be sent to — with Devin
driven over ACP (`devin acp`) in a home of magpie's own that keeps only the
caller's MCP tools and shares just the sign-in.
+2 -2
View File
@@ -1199,7 +1199,7 @@ function accountPlan(a) {
if (a.agent === "copilot") return "GitHub";
if (a.agent === "claude") return "Claude" + (a.plan ? " " + a.plan[0].toUpperCase() + a.plan.slice(1) : "");
if (a.agent === "cursor") return "Cursor" + (a.plan ? " " + a.plan[0].toUpperCase() + a.plan.slice(1) : "");
if (a.agent === "grok") return "Grok Build";
if (a.agent === "grok") return a.plan || "SuperGrok";
if (a.agent === "gemini" || a.agent === "antigravity") return a.plan || "Google";
return t("signed in");
}
@@ -2735,7 +2735,7 @@ const SUBS = [
// cursor-agent keeps one account; signing in again replaces it
{ agent: "cursor", name: "Cursor", icon: "cursor", plans: "Pro · Ultra · Teams", single: true },
// so does Grok Build
{ agent: "grok", name: "Grok Build", icon: "xai", plans: "SuperGrok · X Premium+", own: true },
{ agent: "grok", name: "Grok (SuperGrok)", icon: "xai", plans: "SuperGrok · X Premium+", own: true },
// signed in with GitHub's device code; the editors' own sign-in stays theirs
{ agent: "copilot", name: "Copilot", icon: "githubcopilot", plans: "Pro · Pro+ · Business", own: true },
// devin's credentials.toml keeps one account too
-2
View File
@@ -172,8 +172,6 @@ func providerInfo(p provider.Provider, agents []*agent.Agent) providerJSON {
} else if a.Agent == "cursor" {
// cursor-agent runs behind the gateway, not as an agent magpie configures
out.Account.Name, out.Account.Icon = "Cursor CLI", "cursor"
} else if a.Agent == "grok" {
out.Account.Name, out.Account.Icon = "Grok Build", "xai"
} else if a.Agent == "antigravity" {
out.Account.Name, out.Account.Icon = "Antigravity", "antigravity-color"
}
+1 -1
View File
@@ -111,7 +111,7 @@ func grokAccount() (Provider, bool) {
}
return ms, catalog.SaveLive("grok", "", ms)
}
return Provider{ID: "grok", Name: "Grok Build", Icon: "xai", Website: "https://x.ai/cli", Account: acct}, true
return Provider{ID: "grok", Name: "Grok (SuperGrok)", Icon: "xai", Website: "https://x.ai/cli", Account: acct}, true
}
var grokModelL = regexp.MustCompile(`^[*-]\s+([A-Za-z0-9][\w.:-]*)`)
+1 -1
View File
@@ -158,7 +158,7 @@ func grokLoginUsage(ctx context.Context) map[string]SubscriptionQuota {
// grokUsageAt is the allowance of the account signed in in home.
func grokUsageAt(ctx context.Context, home string) SubscriptionQuota {
q := SubscriptionQuota{Provider: "grok", Name: "Grok Build", Icon: "xai", Windows: []QuotaWindow{}}
q := SubscriptionQuota{Provider: "grok", Name: "Grok (SuperGrok)", Icon: "xai", Windows: []QuotaWindow{}}
c, err := grokAccessToken(home, GrokExecutable(), false)
if err == nil {
q.Windows, err = grokWindows(ctx, c.Key)
+1 -1
View File
@@ -14,7 +14,7 @@ import (
var grokBase = "https://cli-chat-proxy.grok.com/v1"
func grokSubscriptionUsage(ctx context.Context) SubscriptionQuota {
q := SubscriptionQuota{Provider: "grok", Name: "Grok Build", Icon: "xai", Windows: []QuotaWindow{}}
q := SubscriptionQuota{Provider: "grok", Name: "Grok (SuperGrok)", Icon: "xai", Windows: []QuotaWindow{}}
if c, ok := readGrokCredential(GrokHome()); ok {
q.User = c.Email
}
+1 -1
View File
@@ -94,7 +94,7 @@
</figure>
<h3>Subscriptions · sign in, no key</h3>
<p>Claude (Pro, Max, Team), ChatGPT (Plus, Pro, Business), Cursor, Grok Build (SuperGrok), Copilot and Devin. Click the tile and magpie opens the vendor’s own sign-in page in your browser; the account shows up as soon as you finish (Copilot gives you a code to enter on GitHub’s page). Subscriptions are added here, in magpie, not by logging in inside another agent.</p>
<p>Claude (Pro, Max, Team), ChatGPT (Plus, Pro, Business), Cursor, Grok (SuperGrok), Copilot and Devin. Click the tile and magpie opens the vendor’s own sign-in page in your browser; the account shows up as soon as you finish (Copilot gives you a code to enter on GitHub’s page). Subscriptions are added here, in magpie, not by logging in inside another agent.</p>
<ul>
<li><b>More than one account.</b> Click the Claude or ChatGPT tile again to add another; each is listed under the provider, one click from being the one in use.</li>
<li><b>Already signed in?</b> An agent you are signed in to on this machine shows up as a provider too, <em>signed in as …</em>.</li>
+1 -1
View File
@@ -94,7 +94,7 @@
</figure>
<h3>订阅 · 登录即可,无需密钥</h3>
<p>Claude(Pro、Max、Team)、ChatGPT(Plus、Pro、Business)、Cursor、Grok Build(SuperGrok)、Copilot 和 Devin。点卡片后 magpie 会在浏览器里打开厂商自己的登录页,登录完成后账号立刻出现(Copilot 会给你一个验证码,在 GitHub 页面上输入)。订阅是在 magpie 里添加的,不需要先去别的 Agent 里登录。</p>
<p>Claude(Pro、Max、Team)、ChatGPT(Plus、Pro、Business)、Cursor、Grok(SuperGrok)、Copilot 和 Devin。点卡片后 magpie 会在浏览器里打开厂商自己的登录页,登录完成后账号立刻出现(Copilot 会给你一个验证码,在 GitHub 页面上输入)。订阅是在 magpie 里添加的,不需要先去别的 Agent 里登录。</p>
<ul>
<li><b>多个账号。</b>再点一次 Claude 或 ChatGPT 卡片即可再加一个;它们都列在这个供应商下面,点一下就能切换使用哪个。</li>
<li><b>已经登录过?</b>本机上已经登录的 Agent 也会作为供应商出现,显示为 <em>已登录 …</em>。</li>