Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Codex: several ChatGPT accounts on a Cloud, each signed in by device code into its own Codex home (#7342)

Milind Soni752d3f035891
diff --git a/docs/verification/chatgpt-plan.md b/docs/verification/chatgpt-plan.md
index 56cccfc6ab..c99ac92280 100644
--- a/docs/verification/chatgpt-plan.md
+++ b/docs/verification/chatgpt-plan.md
@@ -25,15 +25,19 @@ refresh-token reuse. If a process dies while holding that lock, the safe recover
is to stop the old process, confirm it has exited, and remove only that account's
`.credentials.lock` before reconnecting. We do not guess that a live lock is stale.
-## Hosted Pro boundary
+## Hosted servers (Clouds, hosted workspaces)
-The local callback is not a hosted OAuth redirect. Hosted Pro and managed company
-workspaces explicitly report the integration unavailable; a proxied/remote request
-cannot start a local flow. OpenAI's [hosted-app approval](https://openai.com/form/sign-in-with-chatgpt-interest/)
-and issued client/callback contract are required before implementing and enabling
-the hosted route. Do not use the dynamic local client in a paid hosted service,
-copy a desktop token to Pro, or silently use API billing. Existing separately
-configured providers remain unchanged.
+The local callback is not a hosted OAuth redirect, so the browser sign-in above
+never runs on a hosted server, and a proxied or remote request cannot start it on
+a desktop either. There, a ChatGPT account added in Settings is Codex's own login
+instead: `codex login --device-auth` writes into the account's own Codex home,
+`providers/chatgpt-plan/<account-hash>/codex` (owner-only), the same device-code
+sign-in the first Codex account uses on a Cloud. `codex login status`, `codex
+logout`, the account name, model list, usage limits and every turn of that
+account use that home; the first Codex account keeps `$CODEX_HOME` or `~/.codex`.
+The person's Codex setup (config.toml, skills, plugins) is linked in; the login
+and chats are not. Do not use the dynamic local client in a paid hosted service,
+copy a desktop token to a server, or silently use API billing.
## Verification
diff --git a/server/bot-box/plan.test.ts b/server/bot-box/plan.test.ts
index 2cf3b6b006..2f070bd924 100644
--- a/server/bot-box/plan.test.ts
+++ b/server/bot-box/plan.test.ts
@@ -3,6 +3,8 @@ import { describe, expect, it } from "vitest";
import { engineInstallRoots } from "../engine-roots.ts";
import { githubFolders } from "../github/sign-in.ts";
+import { chatgptAccountHome } from "../drivers/codex-account-home.ts";
+import { boxEnvironment } from "./env.ts";
import { BOX_MUTATIONS, CPU_LIST_FILES, argvPaths, bwrapArgs, planBox, taskWorkspaceIds, under, visibleInBox, type BoxAudience, type BoxMutation, type BoxRequest, type BoxSetup } from "./plan.ts";
const home = "/data";
@@ -266,6 +268,15 @@ linuxBox("the box plan", () => {
expect(visibleInBox(ask({ CODEX_HOME: join(dataDir, "providers", "codex-1") }, false), join(dataDir, "providers", "codex-1", "auth.json"))).toBe("rw");
});
+ it("gives a ChatGPT account's turn its own Codex home and no other account's", () => {
+ const work = chatgptAccountHome("chatgpt-work", dataDir), spare = chatgptAccountHome("chatgpt-spare", dataDir);
+ const env = boxEnvironment({ HOME: home, CODEX_HOME: work, OMB_DATA_DIR: dataDir });
+ expect(env).toEqual({ HOME: home, CODEX_HOME: work });
+ const plan = planBox(setup(), { command: "codex", args: ["app-server"], cwd, env });
+ expect(visibleInBox(plan, join(work, "auth.json"))).toBe("rw");
+ expect(visibleInBox(plan, join(spare, "auth.json"))).toBe("none");
+ });
+
it("never shows a GitHub sign-in's folder (its token, gh's config and HOME), whatever the turn asks", () => {
const owner = githubFolders(dataDir, "owner"), member = githubFolders(dataDir, `p_${"a".repeat(22)}`);
const files = [join(owner.config, "hosts.yml"), join(owner.home, ".gitconfig"), join(member.config, "hosts.yml"), join(dataDir, "github")];
diff --git a/server/chatgpt-plan-api.test.ts b/server/chatgpt-plan-api.test.ts
index 4e9843460c..3d2ad96bb3 100644
--- a/server/chatgpt-plan-api.test.ts
+++ b/server/chatgpt-plan-api.test.ts
@@ -156,7 +156,7 @@ describe("ChatGPT plan accounts over isolated HTTP", () => {
] as const) {
const refused = await api("POST", "/api/instances/chatgpt/auth/start", {}, { ...owner, [header]: value });
expect(refused.status).toBe(403);
- expect(refused.body.error).toContain("computer running OpenMausBot");
+ expect(refused.body.error).toMatch(/^Continue with ChatGPT on the computer running \S+: this sign-in finishes in a browser there\./);
expect(refused.body).not.toHaveProperty("auth");
}
});
diff --git a/server/drivers/codex-account-home.ts b/server/drivers/codex-account-home.ts
new file mode 100644
index 0000000000..a67d26a45f
--- /dev/null
+++ b/server/drivers/codex-account-home.ts
@@ -0,0 +1,27 @@
+// An added ChatGPT account (`authMode: "chatgpt-plan"`) keeps its sign-in in a folder of its own. On the person's own
+// computer it signs in in their browser, and MausBot holds its tokens. Where that browser cannot reach this server back
+// (a Cloud, a hosted workspace), Codex's own device-code login writes into the account's own Codex home instead, so
+// several ChatGPT accounts stay signed in side by side and none of them uses another's login. The first Codex account
+// keeps the person's Codex home ($CODEX_HOME or ~/.codex).
+import { createHash } from "node:crypto";
+import { join } from "node:path";
+
+import { DATA_DIR } from "../config.ts";
+import { cloudHomeConfigured } from "../cloud-home.ts";
+import { hostedWorkspaceConfigured } from "../enterprise.ts";
+
+/** One folder per added account, named by a hash of its instance id. */
+export function chatgptAccountDirectory(instanceId: string, dataDir: string = DATA_DIR): string {
+ return join(dataDir, "providers", "chatgpt-plan", createHash("sha256").update(instanceId).digest("hex"));
+}
+
+/** The account's own Codex home: its login (auth.json), model list and chats. */
+export function chatgptAccountHome(instanceId: string, dataDir: string = DATA_DIR): string {
+ return join(chatgptAccountDirectory(instanceId, dataDir), "codex");
+}
+
+/** A ChatGPT-plan account on a server whose browser sign-in cannot call back: it signs in with Codex's device code. */
+export function chatgptAccountSignsInByDevice(config: unknown, env: NodeJS.ProcessEnv = process.env): boolean {
+ return (config as { authMode?: unknown } | null | undefined)?.authMode === "chatgpt-plan"
+ && (hostedWorkspaceConfigured(env) || cloudHomeConfigured(env));
+}
diff --git a/server/drivers/codex.test.ts b/server/drivers/codex.test.ts
index 904257985c..3d0a2cb068 100644
--- a/server/drivers/codex.test.ts
+++ b/server/drivers/codex.test.ts
@@ -1,5 +1,5 @@
import { createHash } from "node:crypto";
-import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
+import { chmodSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, statSync, writeFileSync } from "node:fs";
import { once } from "node:events";
import { spawn } from "node:child_process";
import { createConnection, type AddressInfo } from "node:net";
@@ -14,6 +14,7 @@ import type { ProviderInstance, RuntimeEvent } from "../contracts.ts";
import { DATA_DIR, NATIVE_DIR } from "../config.ts";
import { flushNativeLog } from "./native.ts";
import { ChatGptPlanAuthController } from "./chatgpt-plan-auth.ts";
+import { chatgptAccountHome } from "./codex-account-home.ts";
import { recordEvents, type EventRecorder } from "../testing/events.ts";
import { publishedMessages, replyProblems } from "../harness/text-items.testkit.ts";
import { caseTokens, LIVE_REPLY_CASES, liveReplyScripts } from "../testing/live-reply-cases.ts";
@@ -2459,24 +2460,76 @@ process.stdout.write(JSON.stringify({jsonrpc:'2.0',id:m.id,result})+'\\n');});`)
it.each([
["Cloud home", "OMB_CLOUD_ROLE", "home"],
["hosted enterprise", "OMB_ADMIN_URL", "https://admin.example.test"],
- ])("refuses desktop ChatGPT plan sign-in on %s before accessing credentials or spawning", async (_name, variable, value) => {
+ ])("signs each added ChatGPT account in on %s with Codex's device code, in a Codex home of its own", async (_name, variable, value) => {
vi.stubEnv(variable, value);
- const spawn = vi.spyOn(procs, "spawnCli").mockImplementation(() => { throw new Error("Unexpected process"); });
- const exec = vi.spyOn(procs, "execCli").mockImplementation(() => { throw new Error("Unexpected process"); });
- const catalog = vi.spyOn(ChatGptPlanAuthController.prototype, "models").mockResolvedValue({ default: "", options: [] });
- const token = vi.spyOn(ChatGptPlanAuthController.prototype, "accessToken").mockResolvedValue("unused-synthetic-token");
- const snapshot = vi.spyOn(ChatGptPlanAuthController.prototype, "snapshot").mockResolvedValue({ authenticated: false });
- const start = vi.spyOn(ChatGptPlanAuthController.prototype, "start").mockRejectedValue(new Error("Unexpected sign-in"));
+ const planCalls = (["models", "accessToken", "snapshot", "start", "signOut"] as const)
+ .map((method) => vi.spyOn(ChatGptPlanAuthController.prototype, method).mockRejectedValue(new Error("Unexpected plan call")));
+ const personHome = join(scratch, ".codex"), loginLog = join(scratch, "logins.jsonl"), dump = join(scratch, "turn.json");
+ mkdirSync(personHome, { recursive: true });
+ writeFileSync(join(personHome, "config.toml"), "model = \"gpt-fake-default\"\n");
+ const firstLogin = JSON.stringify({ auth_mode: "chatgpt", email: "[email protected]", tokens: { access_token: "fixture-first" } });
+ writeFileSync(join(personHome, "auth.json"), firstLogin);
+ const shared = { HOME: scratch, USERPROFILE: scratch, FAKE_CODEX_LOGIN_FILE: "1", FAKE_CODEX_LOGIN_LOG: loginLog, FAKE_CODEX_DUMP: dump, FAKE_CODEX_DUMP_TURNS_ONLY: "1" };
+ const make = (instanceId: string, email: string, config: object, environment: Record<string, string> = {}) => CodexDriver.create({
+ instanceId, displayName: instanceId, enabled: true, environment: { ...shared, FAKE_CODEX_DEVICE_EMAIL: email, ...environment },
+ config: { cli: FAKE_CLI, fullAuto: false, ...config },
+ });
+ const first = await make("codex", "[email protected]", {}, { CODEX_HOME: personHome });
+ const work = await make(`chatgpt-work-${variable}`, "[email protected]", { authMode: "chatgpt-plan" });
+ const spare = await make(`chatgpt-spare-${variable}`, "[email protected]", { authMode: "chatgpt-plan" });
+ const workHome = chatgptAccountHome(`chatgpt-work-${variable}`), spareHome = chatgptAccountHome(`chatgpt-spare-${variable}`);
+ try {
+ expect(workHome).not.toBe(spareHome);
+ for (const home of [workHome, spareHome]) {
+ expect(home.startsWith(join(DATA_DIR, "providers", "chatgpt-plan") + sep)).toBe(true);
+ if (process.platform !== "win32") expect(statSync(home).mode & 0o777).toBe(0o700);
+ }
+ expect(work.authenticationMethod).toBeUndefined();
+ expect(work.signOut).toBeTypeOf("function");
+ expect(await work.snapshot()).toMatchObject({ state: "available", authenticated: false });
+
+ const started = await work.startAuthentication!();
+ expect(started).toMatchObject({ phase: "waiting", authorizationUrl: "https://auth.openai.com/codex/device", userCode: "0CSG-0IXIM" });
+ await vi.waitFor(async () => expect((await work.getAuthentication!(started.flowId!)).phase).toBe("succeeded"), { timeout: 10_000 });
+
+ // Only the work account's home got a login; the first account's login is untouched and the spare has none.
+ expect(JSON.parse(readFileSync(join(workHome, "auth.json"), "utf8"))).toMatchObject({ email: "[email protected]" });
+ expect(lstatSync(join(workHome, "auth.json")).isSymbolicLink()).toBe(false);
+ expect(existsSync(join(spareHome, "auth.json"))).toBe(false);
+ expect(readFileSync(join(personHome, "auth.json"), "utf8")).toBe(firstLogin);
+ expect(realpathSync(join(workHome, "config.toml"))).toBe(realpathSync(join(personHome, "config.toml")));
+ const logins = readFileSync(loginLog, "utf8").trim().split("\n").map((line) => JSON.parse(line));
+ expect(logins.filter((call) => call.codexHome === workHome).map((call) => call.args.join(" ")))
+ .toEqual(["login status", "login status", "login --device-auth", "login status"]);
+ expect(logins.filter((call) => call.codexHome !== workHome).every((call) => call.args.join(" ") === "login status")).toBe(true);
+
+ expect(await work.snapshot()).toMatchObject({ authenticated: true, account: { email: "[email protected]" } });
+ expect(await spare.snapshot()).toMatchObject({ authenticated: false });
+ expect(await first.snapshot()).toMatchObject({ authenticated: true, account: { email: "[email protected]" } });
+
+ // A turn of the work account runs with its home, never the first account's.
+ const turns = recordEvents(work.adapter);
+ await work.adapter.sendTurn({ threadId: "work-turn", text: "Fixture" });
+ await turns.until((event) => event.type === "turn.completed");
+ expect(turns.events.find((event) => event.type === "turn.completed")).toMatchObject({ ok: true });
+ expect(JSON.parse(readFileSync(dump, "utf8")).env.CODEX_HOME).toBe(workHome);
+
+ // Signing the work account out removes only its login.
+ await work.signOut!();
+ expect(existsSync(join(workHome, "auth.json"))).toBe(false);
+ expect(readFileSync(join(personHome, "auth.json"), "utf8")).toBe(firstLogin);
+ expect(await work.snapshot()).toMatchObject({ authenticated: false });
+ expect(await first.snapshot()).toMatchObject({ authenticated: true });
+ for (const call of planCalls) expect(call).not.toHaveBeenCalled();
+ } finally {
+ await Promise.all([first, work, spare].map((engine) => engine.dispose()));
+ }
+ });
+
+ it("keeps the browser ChatGPT plan sign-in on the person's own computer", async () => {
+ vi.spyOn(ChatGptPlanAuthController.prototype, "models").mockResolvedValue({ default: "", options: [] });
await create({ authMode: "chatgpt-plan" });
- expect(instance.models).toEqual({ default: "", options: [] });
- expect(await instance.snapshot()).toMatchObject({
- state: "unavailable", authenticated: false, chatgptPlan: true,
- authenticationUnavailableReason: expect.stringContaining("hosted-app approval"),
- });
- await expect(instance.startAuthentication!()).rejects.toThrow("hosted-app approval");
- await expect(instance.adapter.sendTurn({ threadId: "hosted-plan", text: "Continue", model: "gpt-6.1-sol" }))
- .rejects.toThrow("hosted-app approval");
- for (const operation of [spawn, exec, catalog, token, snapshot, start]) expect(operation).not.toHaveBeenCalled();
+ expect(instance.authenticationMethod).toBe("browser-pkce");
});
it.each(["signOut", "dispose"] as const)("invalidates pending ChatGPT token/model preparation on %s", async (action) => {
diff --git a/server/drivers/codex.ts b/server/drivers/codex.ts
index a7a37c7ad9..86ed245a97 100644
--- a/server/drivers/codex.ts
+++ b/server/drivers/codex.ts
@@ -15,10 +15,9 @@ import { join } from "node:path";
import { homedir } from "node:os";
import { codexConfigMcp, codexConfigRunsServer, codexMcpDisableArgs, mountedMcpServerName } from "./codex-mcp-names.ts";
-import { DATA_DIR, stripWorkspaceCredentialEnv } from "../config.ts";
+import { stripWorkspaceCredentialEnv } from "../config.ts";
import { laterStartup, openStartupModelCatalog, unconfirmedModelCatalog, writeStartupModelCache } from "../startup-model-catalog.ts";
-import { hostedWorkspaceConfigured } from "../enterprise.ts";
-import { cloudHomeConfigured } from "../cloud-home.ts";
+import { chatgptAccountDirectory, chatgptAccountHome, chatgptAccountSignsInByDevice } from "./codex-account-home.ts";
import { serverVersion } from "../environment.ts";
import { ChatGptPlanAuthController } from "./chatgpt-plan-auth.ts";
import { chatgptPlanCodexArgs, PLAN_TOKEN_BRIDGE_ENV, planTokenRenewal, startPlanTokenBridge, type PlanTokenBridge } from "./codex-plan-token.ts";
@@ -216,11 +215,9 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
const { instanceId, config } = input;
const routed = config.endpoint ?? config.managed;
const routedProvider = config.endpoint ? "openmaus_endpoint" : "openmaus_company";
- const plan = config.authMode === "chatgpt-plan";
- const planUnavailable = plan && (hostedWorkspaceConfigured() || cloudHomeConfigured())
- ? "ChatGPT plan sign-in for hosted Pro requires OpenAI's hosted-app approval. Use a Company model or API key until that integration is approved; the local desktop flow cannot be used here."
- : undefined;
- const planDirectory = join(DATA_DIR, "providers", "chatgpt-plan", createHash("sha256").update(instanceId).digest("hex"));
+ // Where the browser sign-in cannot call back, an added ChatGPT account is Codex's own login in a Codex home of its own.
+ const deviceHome = chatgptAccountSignsInByDevice(config) ? chatgptAccountHome(instanceId) : null;
+ const plan = config.authMode === "chatgpt-plan" && !deviceHome, planDirectory = chatgptAccountDirectory(instanceId);
const childEnv = (): Record<string, string | undefined> => {
const env: Record<string, string | undefined> = {
...process.env,
@@ -238,9 +235,12 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
env.OPENMAUSBOT_CODEX_API_KEY = input.environment.OPENMAUSBOT_CODEX_API_KEY;
env.CODEX_HOME = input.environment.CODEX_HOME;
}
- if (plan) env.CODEX_HOME = join(planDirectory, "codex");
+ if (plan || deviceHome) { env.CODEX_HOME = join(planDirectory, "codex"); delete env.CODEX_SQLITE_HOME; }
return env;
};
+ // The person's Codex setup is linked in, its login stays its own; Codex refuses a CODEX_HOME that does not exist.
+ const prepareDeviceHome = () => { if (deviceHome) linkSharedCodexHome(codexHome({ ...process.env, ...input.environment }), deviceHome); };
+ try { prepareDeviceHome(); } catch {}
const catalogEnv = childEnv();
const planAuth = plan ? new ChatGptPlanAuthController({ directory: planDirectory }) : null;
const planRenewal = planTokenRenewal(() => readCliVersion(catalogEnv));
@@ -256,7 +256,7 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
const kept = preserveExisting && models.options.length > 0 ? models : null;
if (!kept) models = { default: "", options: [] };
try {
- if (!planUnavailable && !planSigningOut && !disposed) {
+ if (!planSigningOut && !disposed) {
const catalog = await planAuth.models();
if (generation === planGeneration && !planSigningOut && !disposed && (!kept || catalog.options.length)) models = catalog;
}
@@ -317,7 +317,7 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
const loginRejected = () => { const mark = loginMark(); return mark !== null && keyRejected(...mark); };
const authentication = new CodexDeviceAuthController({
cli: config.cli,
- environment: childEnv,
+ environment: () => { prepareDeviceHome(); return childEnv(); },
signInRejected: loginRejected,
onAuthenticated: async () => { loginAccepted(); await refreshModels(); },
});
@@ -352,7 +352,6 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
if (planAuth && (planSigningOut || generation !== planGeneration)) throw new Error("The ChatGPT account changed while this message was preparing. Select a connected account and send again.");
};
assertPlanCurrent();
- if (planUnavailable) throw new Error(planUnavailable);
const planToken = planAuth ? await planAuth.accessToken() : undefined;
assertPlanCurrent();
if (planAuth) {
@@ -370,6 +369,7 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
}
linkSharedCodexHome(codexHome({ ...process.env, ...input.environment }), join(planDirectory, "codex"));
}
+ prepareDeviceHome();
if (config.endpoint) {
if (!turn.model || !config.endpoint.models.includes(turn.model)) throw new Error("Select a model configured for this direct API endpoint.");
if (!input.environment.OPENMAUSBOT_CODEX_API_KEY || !input.environment.CODEX_HOME) throw new Error("Direct API key or isolated Codex home is missing. Edit the endpoint in Settings.");
@@ -1397,7 +1397,6 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
const readCliVersion = cliVersionProbe(config.cli);
const snapshot = async (): Promise<ProviderSnapshot> => {
- if (planUnavailable) return { state: "unavailable", authenticated: false, chatgptPlan: true, reason: planUnavailable, authenticationUnavailableReason: planUnavailable };
const env = childEnv();
const probe = await readCliVersion(env);
if (!("version" in probe)) return { state: "unavailable", reason: probe.reason, ...(plan ? { chatgptPlan: true } : {}) };
@@ -1432,7 +1431,7 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
const generateMemoryText = async (prompt: string, options: TextGenerationOptions = {}): Promise<string> => {
if (startupModelRefresh) await startupModelRefresh;
if (disposed) throw new Error("This provider was removed.");
- if (planUnavailable) throw new Error(planUnavailable);
+ prepareDeviceHome();
const env = childEnv();
let providerArgs: string[] = [];
let authBridge: PlanTokenBridge | null = null;
@@ -1492,7 +1491,6 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {
...(plan ? { authenticationMethod: "browser-pkce" as const } : {}),
...(!config.endpoint ? {
startAuthentication: async () => {
- if (planUnavailable) throw new Error(planUnavailable);
if (planSigningOut || disposed) throw new Error("This account is being disconnected. Wait before signing in again.");
if (planAuth) planGeneration++; // a new login may replace the account before its status is polled
return (planAuth ?? authentication).start();
diff --git a/server/engine-homes/layout.test.ts b/server/engine-homes/layout.test.ts
index f8e8bcdb2a..08b7191204 100644
--- a/server/engine-homes/layout.test.ts
+++ b/server/engine-homes/layout.test.ts
@@ -5,6 +5,7 @@ import { afterAll, describe, expect, it } from "vitest";
import { audienceBrowserSuffix } from "../browser/audience.ts";
import { audienceHome, audienceHomeKey, audienceHomes, homedSpawn } from "./layout.ts";
+import { chatgptAccountHome } from "../drivers/codex-account-home.ts";
const linux = describe.skipIf(process.platform === "win32");
const serverHome = "/data", dataDir = "/data/.openmausbot";
@@ -53,6 +54,15 @@ linux("an audience's engine home", () => {
expect(other.env.CODEX_HOME!.slice(owner.length)).toBe(homed.env.CODEX_HOME!.slice(bob.length));
});
+ it("keeps two ChatGPT accounts' Codex homes apart in one audience, each with its own login", () => {
+ const work = chatgptAccountHome("chatgpt-work", dataDir), spare = chatgptAccountHome("chatgpt-spare", dataDir);
+ const [a, b] = [work, spare].map((CODEX_HOME) => homedSpawn({ HOME: serverHome, CODEX_HOME }, { dataDir, serverHome, home: bob }));
+ expect(a!.env.CODEX_HOME).not.toBe(b!.env.CODEX_HOME);
+ expect(a!.shared).toContainEqual({ source: `${work}/auth.json`, target: `${a!.env.CODEX_HOME}/auth.json` });
+ expect(b!.shared).toContainEqual({ source: `${spare}/auth.json`, target: `${b!.env.CODEX_HOME}/auth.json` });
+ expect(a!.shared.some((file) => file.source.startsWith(`${spare}/`) || file.target.startsWith(`${b!.env.CODEX_HOME}/`))).toBe(false);
+ });
+
it("follows a Pi agent folder the environment names, with its login, and keeps ~/.pi/agent's otherwise", () => {
expect(homedSpawn({ HOME: serverHome }, { dataDir, serverHome, home: bob }).shared)
.toContainEqual({ source: "/data/.pi/agent/auth.json", target: `${bob}/.pi/agent/auth.json` });
diff --git a/server/plan-usage.test.ts b/server/plan-usage.test.ts
index c14b881c97..33f152bc81 100644
--- a/server/plan-usage.test.ts
+++ b/server/plan-usage.test.ts
@@ -16,6 +16,7 @@ import {
type PlanFetch,
type PlanResponse,
} from "./plan-usage.ts";
+import { chatgptAccountHome } from "./drivers/codex-account-home.ts";
const SECRET = "plan-usage-fixture-secret";
const NOW = 1_800_000_000_000;
@@ -652,6 +653,28 @@ describe("plan usage fetcher", () => {
expect(report.providers.map((row) => row.id)).toEqual(["codex"]);
});
+ it("reads each Cloud ChatGPT account's limits from its own Codex home, never the first account's", async () => {
+ const instances = {
+ codex: { driver: "codex" },
+ chatgpt: { driver: "codex", displayName: "ChatGPT plan", config: { authMode: "chatgpt-plan" } },
+ "chatgpt-work": { driver: "codex", displayName: "Work", config: { authMode: "chatgpt-plan" } },
+ };
+ const accounts = planAccountsFromInstances(instances, { OMB_CLOUD_ROLE: "home" });
+ expect(accounts).toEqual([
+ { id: "codex", name: "Codex", driver: "codex", environment: {} },
+ { id: "chatgpt", name: "ChatGPT plan", driver: "codex", environment: { CODEX_HOME: chatgptAccountHome("chatgpt") } },
+ { id: "chatgpt-work", name: "Work", driver: "codex", environment: { CODEX_HOME: chatgptAccountHome("chatgpt-work") } },
+ ]);
+ const tokens = new Map([
+ [join("/home/fixture/.codex", "auth.json"), "first-fixture"],
+ [join(chatgptAccountHome("chatgpt-work"), "auth.json"), "work-fixture"],
+ ]);
+ const reader = fileCredentialReader({ now: () => NOW, env: { HOME: "/home/fixture" },
+ readText: (path) => tokens.has(path) ? JSON.stringify({ tokens: { access_token: tokens.get(path) } }) : null });
+ expect(await Promise.all(accounts.map(async (account) => (await reader.read(account)).token)))
+ .toEqual(["first-fixture", null, "work-fixture"]);
+ });
+
it("reads every Claude instance's login with no setting, and none whose config sets usageMeter to false", async () => {
const accounts = planAccountsFromInstances({
claude: { driver: "claudeAgent" },
diff --git a/server/plan-usage.ts b/server/plan-usage.ts
index 002ee47bd3..d4132c0f15 100644
--- a/server/plan-usage.ts
+++ b/server/plan-usage.ts
@@ -6,7 +6,7 @@ import { homedir } from "node:os";
import { join } from "node:path";
import type { InstanceConfigMap } from "./contracts.ts";
import { resolveClaudeConfigDir } from "./drivers/claude.ts";
-import { codexHome } from "./drivers/codex-identity.ts";
+import { codexHome } from "./drivers/codex-identity.ts"; import { chatgptAccountHome, chatgptAccountSignsInByDevice } from "./drivers/codex-account-home.ts";
import { codexHasCredits } from "./codex-credits.ts";
import { antigravityNativePlanUsage, antigravityPlanUsage, antigravityRunsNativeCli } from "./drivers/antigravity-usage-limits.ts";
import { harnessHome, sealedFixture } from "./env-path.ts";
@@ -146,21 +146,21 @@ const PRODUCT_NAME: Record<PlanDriver, string> = {
antigravity: "Antigravity",
};
-export function planAccountsFromInstances(instances: InstanceConfigMap): PlanAccount[] {
+export function planAccountsFromInstances(instances: InstanceConfigMap, env: NodeJS.ProcessEnv = process.env): PlanAccount[] {
const accounts: PlanAccount[] = [];
for (const [id, entry] of Object.entries(instances)) {
const driver = DRIVER_OF[entry.driver];
if (!driver) continue;
- const config = asRecord(entry.config);
- const configDir = typeof config?.configDir === "string" ? config.configDir : undefined;
+ const config = asRecord(entry.config), configDir = typeof config?.configDir === "string" ? config.configDir : undefined;
+ const ownCodexHome = driver === "codex" && chatgptAccountSignsInByDevice(config, env);
accounts.push({
id,
name: entry.displayName?.trim() || PRODUCT_NAME[driver],
driver,
- environment: { ...entry.environment },
+ environment: { ...entry.environment, ...(ownCodexHome ? { CODEX_HOME: chatgptAccountHome(id) } : {}) },
...(configDir ? { configDir } : {}),
- // Reading ~/.codex/auth.json for a ChatGPT-plan provider would report (and hold it on) another account's limit.
- ...(config?.authMode === "chatgpt-plan" || (driver === "claude" && config?.usageMeter === false) ? { noUsage: true as const } : driver === "antigravity" && typeof config?.cli === "string" ? { antigravityCli: config.cli } : {}),
+ // Reading ~/.codex/auth.json for a browser-signed ChatGPT plan would report (and hold it on) another account's limit.
+ ...((config?.authMode === "chatgpt-plan" && !ownCodexHome) || (driver === "claude" && config?.usageMeter === false) ? { noUsage: true as const } : driver === "antigravity" && typeof config?.cli === "string" ? { antigravityCli: config.cli } : {}),
});
}
return accounts;
diff --git a/server/routes/instances.test.ts b/server/routes/instances.test.ts
index a8d841ddb3..383319250b 100644
--- a/server/routes/instances.test.ts
+++ b/server/routes/instances.test.ts
@@ -124,7 +124,13 @@ describe("browser sign-in from a paired phone", () => {
instance(onPhone).authenticationMethod = "browser-pkce";
const pkce = await start(onPhone.base);
expect(pkce.status).toBe(403);
- expect(((await pkce.json()) as { error: string }).error).toMatch(/Continue with ChatGPT on the computer/);
+ const pkceError = ((await pkce.json()) as { error: string }).error;
+ expect(pkceError).toMatch(/Continue with ChatGPT on the computer/);
+ expect(pkceError).not.toMatch(/hosted-app approval/);
+
+ // A Cloud's added ChatGPT account signs in by device code (no browser callback), from any browser.
+ instance(onPhone).authenticationMethod = undefined;
+ expect((await start(onPhone.base)).status).toBe(200);
instance(onPhone).authenticationMethod = "code";
expect((await start(onPhone.base)).status).toBe(200);
diff --git a/server/routes/instances.ts b/server/routes/instances.ts
index e1342008c9..ab8a8054a0 100644
--- a/server/routes/instances.ts
+++ b/server/routes/instances.ts
@@ -375,7 +375,7 @@ export function createInstanceRoutes(deps: InstanceRouteDeps): RouteHandler {
if (instance.authenticationMethod === "browser") {
return json(res, 403, { error: `This sign-in happens in a browser on the computer running ${productName()}. Open ${productName()} there to sign in.` });
}
- return json(res, 403, { error: "Continue with ChatGPT on the computer running OpenMausBot. Hosted Pro sign-in requires OpenAI's hosted-app approval." });
+ return json(res, 403, { error: `Continue with ChatGPT on the computer running ${productName()}: this sign-in finishes in a browser there. Open ${productName()} on that computer to sign in.` });
}
const started = await providerAuthSessions.start(instance, owner);
if (started.phase === "succeeded") registry.forgetSnapshots();
diff --git a/server/testing/fake-codex-app-server.ts b/server/testing/fake-codex-app-server.ts
index 63b79bb8f4..23b8d86d00 100755
--- a/server/testing/fake-codex-app-server.ts
+++ b/server/testing/fake-codex-app-server.ts
@@ -33,6 +33,9 @@
// FAKE_CODEX_APPROVAL_REQUEST JSON {method, params} override in approval mode
// FAKE_CODEX_ACCOUNT_EMAIL synthetic ChatGPT identity (default [email protected])
// FAKE_CODEX_ACCOUNT_MODE chatgpt (default) | api-key | none | unsupported | error | hang
+// FAKE_CODEX_LOGIN_FILE "1": the login lives in $CODEX_HOME/auth.json, as codex-cli keeps it: `login --device-auth` prints a
+// device code and writes it (FAKE_CODEX_DEVICE_EMAIL names the account), `login status` and account/read report it,
+// `logout` removes it; each call appends {args, codexHome} to FAKE_CODEX_LOGIN_LOG
// FAKE_CODEX_RESUME_ERROR JSON-RPC error rejecting thread/resume
// FAKE_CODEX_ARCHIVED "1": thread/resume says the session is archived until thread/unarchive; "unarchive-fails": unarchive is refused too
// FAKE_CODEX_INSTRUCTIONS_FILE while this file exists, config/read reports its text as developer_instructions: the
@@ -86,6 +89,7 @@
// namespace-less function_call for retry_thread and codex's "unsupported call: retry_thread" output to it
import { spawn } from "node:child_process";
import { appendFileSync, existsSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
const mode = process.env.FAKE_CODEX_MODE ?? "happy";
@@ -137,7 +141,31 @@ if (process.argv[2] === "--version") {
process.stdout.write(`${updated ? "codex-cli 0.162.1" : process.env.FAKE_CODEX_VERSION ?? "codex-cli 0.147.0"}\n`);
process.exit(0);
}
-if (process.argv[2] === "login" && process.argv[3] === "status") {
+const loginFile = process.env.FAKE_CODEX_LOGIN_FILE === "1" && process.env.CODEX_HOME ? join(process.env.CODEX_HOME, "auth.json") : null;
+const storedLogin = (): { email?: string } | null => {
+ try { return loginFile ? JSON.parse(readFileSync(loginFile, "utf8")) : null; } catch { return null; }
+};
+if (loginFile && (process.argv[2] === "login" || process.argv[2] === "logout")) {
+ const args = process.argv.slice(2);
+ if (process.env.FAKE_CODEX_LOGIN_LOG) appendFileSync(process.env.FAKE_CODEX_LOGIN_LOG, `${JSON.stringify({ args, codexHome: process.env.CODEX_HOME })}\n`);
+ if (args.join(" ") === "login status") {
+ if (storedLogin()) { process.stderr.write("Logged in using ChatGPT\n"); process.exit(0); }
+ process.stderr.write("Not logged in\n");
+ process.exit(1);
+ }
+ if (args.join(" ") === "login --device-auth") {
+ process.stderr.write("Open this link:\nhttps://auth.openai.com/codex/device\nEnter this one-time code (expires in 15 minutes)\n0CSG-0IXIM\n");
+ await new Promise((resolve) => setTimeout(resolve, 80));
+ // Synthetic fixture only: no token here is real.
+ writeFileSync(loginFile, JSON.stringify({ auth_mode: "chatgpt", email: process.env.FAKE_CODEX_DEVICE_EMAIL ?? "[email protected]", tokens: { access_token: "fixture-access" } }), { mode: 0o600 });
+ process.stderr.write("Successfully logged in\n");
+ process.exit(0);
+ } else if (args[0] === "logout") {
+ try { unlinkSync(loginFile); } catch {}
+ process.stderr.write("Successfully logged out\n");
+ process.exit(0);
+ } else process.exit(2);
+} else if (process.argv[2] === "login" && process.argv[3] === "status") {
if (mode === "logged-out") {
process.stderr.write("Not logged in\n");
process.exit(1);
@@ -624,7 +652,8 @@ process.stdin.on("data", (chunk) => {
} });
break;
}
- const account = accountMode === "none" || mode === "logged-out" ? null
+ const account = accountMode === "none" || mode === "logged-out" || (loginFile && !storedLogin()) ? null
+ : loginFile ? { type: "chatgpt", email: storedLogin()!.email, planType: "pro" }
: accountMode === "api-key" ? { type: "apiKey" }
: { type: "chatgpt", email: process.env.FAKE_CODEX_ACCOUNT_EMAIL ?? "[email protected]", planType: "pro" };
out({ jsonrpc: "2.0", id: msg.id, result: { account, requiresOpenaiAuth: true } });
diff --git a/src/components/EngineAccounts.tsx b/src/components/EngineAccounts.tsx
index aa438dedc8..e253887b42 100644
--- a/src/components/EngineAccounts.tsx
+++ b/src/components/EngineAccounts.tsx
@@ -190,9 +190,11 @@ function RenameForm({ instance, onDone }: { instance: InstanceInfo; onDone: () =
);
}
-function AccountRow({ group, instance, signingIn, onSignIn, onSignInDone }: {
+function AccountRow({ group, instance, several, signingIn, onSignIn, onSignInDone }: {
group: AccountGroup;
instance: InstanceInfo;
+ /** The card lists more than one account, so a device code could be entered while ChatGPT shows another of them. */
+ several: boolean;
signingIn: boolean;
onSignIn: () => void;
onSignInDone: () => void;
@@ -243,7 +245,10 @@ function AccountRow({ group, instance, signingIn, onSignIn, onSignInDone }: {
</details>
)}
</>
- : <DeviceSignIn instanceId={instance.instanceId} provider="codex" browserPkce={instance.authentication?.method === "browser-pkce"} autoStart onDone={onSignInDone} />}
+ : <>
+ {several && instance.authentication?.method === "device-code" && <p className="mt-2 text-[12px] leading-relaxed text-ink-secondary">{t("accounts.chatgptDeviceHint")}</p>}
+ <DeviceSignIn instanceId={instance.instanceId} provider="codex" browserPkce={instance.authentication?.method === "browser-pkce"} autoStart onDone={onSignInDone} />
+ </>}
</div>
)}
{group === "chatgpt" && state === "signedIn" && instance.snapshot.chatgptPlan && (
@@ -328,6 +333,8 @@ export function AccountsCard({ group, accounts, advanced, bare = false }: { grou
const primary = accounts[0]!;
const installed = accounts.some((instance) => instance.snapshot.state === "available");
const policy = accounts.find((instance) => instance.policy)?.policy;
+ // Only the browser sign-in can be refused by a ChatGPT organization; Codex's own device-code sign-in is not.
+ const browserAccounts = group === "chatgpt" && accounts.some((instance) => instance.snapshot.chatgptPlan === true || instance.authentication?.method === "browser-pkce");
const noteId = useId();
return (
<EngineCard instance={primary} summary={summaryFor(group, accounts)} bare={bare}>
@@ -338,7 +345,7 @@ export function AccountsCard({ group, accounts, advanced, bare = false }: { grou
<div className="space-y-2">
<ul data-accounts={group} className="divide-y divide-hairline/40 rounded-xl border border-hairline/50 bg-panel/40">
{accounts.map((instance) => (
- <AccountRow key={instance.instanceId} group={group} instance={instance}
+ <AccountRow key={instance.instanceId} group={group} instance={instance} several={accounts.length > 1}
signingIn={signingIn === instance.instanceId}
onSignIn={() => setSigningIn(instance.instanceId)}
onSignInDone={() => setSigningIn((current) => current === instance.instanceId ? null : current)} />
@@ -346,8 +353,8 @@ export function AccountsCard({ group, accounts, advanced, bare = false }: { grou
</ul>
{!primary.snapshot.authenticationUnavailableReason && <>
<AddAccount label={t(COPY[group].add)} endpoint={`/api/instances/${group}-accounts`} folder={group === "claude"}
- describedBy={group === "chatgpt" ? noteId : undefined} onAdded={setSigningIn} />
- {group === "chatgpt" && <p id={noteId} className="px-2 text-[12px] leading-relaxed text-ink-secondary">{t("accounts.addChatgptWorkspaceNote")}</p>}
+ describedBy={browserAccounts ? noteId : undefined} onAdded={setSigningIn} />
+ {browserAccounts && <p id={noteId} className="px-2 text-[12px] leading-relaxed text-ink-secondary">{t("accounts.addChatgptWorkspaceNote")}</p>}
</>}
{group === "chatgpt" && <p data-codex-shared-setup className="px-2 text-[12px] leading-relaxed text-ink-secondary">{t("accounts.chatgptSharedSetupNote")}</p>}
</div>
diff --git a/src/components/EnginesSettings.test.ts b/src/components/EnginesSettings.test.ts
index b856b73e98..161ffd4e93 100644
--- a/src/components/EnginesSettings.test.ts
+++ b/src/components/EnginesSettings.test.ts
@@ -72,6 +72,35 @@ describe("Settings → Engines → ChatGPT accounts", () => {
});
});
+describe("Settings → Engines → a Cloud's ChatGPT accounts", () => {
+ const device = (instanceId: string, displayName: string, email: string): InstanceInfo => ({
+ instanceId, driverKind: "codex", displayName, cliDefault: "codex",
+ snapshot: { state: "available", authenticated: true, account: { email } },
+ models: { default: "gpt", options: [] }, authentication: { method: "device-code", signOut: true },
+ });
+
+ it("lists each device-code account by the ChatGPT account it is signed in as, each with its own sign-out", () => {
+ vi.stubGlobal("window", {});
+ vi.stubGlobal("navigator", { userAgent: "Linux" });
+ const first = device("codex", "Codex", "[email protected]"), work = device("chatgpt-work", "Work", "[email protected]");
+ fixture.instances = [first, work];
+ fixture.bots = [];
+ const html = renderToStaticMarkup(createElement(EnginesSettings));
+ expect(html).toContain('data-account="codex" data-account-state="signedIn"');
+ expect(html).toContain('data-account="chatgpt-work" data-account-state="signedIn"');
+ expect(html).toContain("[email protected]");
+ expect(html).toContain("[email protected]");
+ expect(html).toContain("Add another ChatGPT account");
+ // OpenAI's organization refusal is about the browser sign-in, which a Cloud never uses.
+ expect(html).not.toContain("3p_delegated_access_policy_denied");
+ expect(accountActions("chatgpt", first)).toEqual({ signOut: true, remove: false, hide: true });
+ expect(accountActions("chatgpt", work)).toEqual({ signOut: true, remove: true, hide: false });
+
+ fixture.instances = [first, { ...work, snapshot: { state: "available", authenticated: true, chatgptPlan: true }, authentication: { method: "browser-pkce", signOut: true } }];
+ expect(renderToStaticMarkup(createElement(EnginesSettings))).toContain("3p_delegated_access_policy_denied");
+ });
+});
+
describe("Settings → Engines → Grok", () => {
function renderGrok(authenticated: boolean): string {
vi.stubGlobal("window", {});
diff --git a/src/components/ModelPicker.tsx b/src/components/ModelPicker.tsx
index ed02ea2494..6bc7f512a9 100644
--- a/src/components/ModelPicker.tsx
+++ b/src/components/ModelPicker.tsx
@@ -303,7 +303,7 @@ export function ModelPicker({
const openaiRailInstance = openaiAccounts.find((instance) => instance.instanceId === lastOpenaiIdRef.current)
?? openaiAccounts.find((instance) => instance.instanceId === selection.instanceId) ?? openaiAccounts[0];
const multipleClaudeAccounts = state.instances.filter(isClaudeAccount).length > 1;
- const showActiveAccount = (multipleClaudeAccounts && isClaudeAccount(active)) || Boolean(active?.snapshot.chatgptPlan);
+ const showActiveAccount = (multipleClaudeAccounts && isClaudeAccount(active)) || Boolean(active?.snapshot.chatgptPlan) || (active?.driverKind === "codex" && /^chatgpt(?:-|$)/.test(active.instanceId));
const claudeRailInstance = claudeAccounts.find((instance) => instance.instanceId === lastClaudeIdRef.current)
?? claudeAccounts.find((instance) => instance.instanceId === selection.instanceId) ?? claudeAccounts[0];
const railInstance =
diff --git a/src/locales/de.json b/src/locales/de.json
index 9c8f8d1f1f..36e1e83b97 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -1584,6 +1584,7 @@
"engines.claudeUpdated": "Claude aktualisiert — {version}",
"engines.updatedTo": "Aktualisiert auf {version}",
"engines.account.signInHint": "Führe genau diesen Befehl in einem Terminal auf dem Computer aus, auf dem {app} läuft, schließe die Claude-CLI-Anmeldung ab und klicke dann auf „Konto prüfen“. Wenn du {app} aus der Ferne nutzt, führe ihn dort aus, nicht auf diesem Gerät.",
+ "accounts.chatgptDeviceHint": "Prüfe vor der Eingabe des Codes, dass ChatGPT das Konto anzeigt, das du hier möchtest. Zeigt es ein anderes, wechsle dort zuerst das Konto.",
"engines.none": "Bisher keine Apps von Modellanbietern erkannt.",
"remote.pairing.tailscale.title": "Tailscale-Kopplung",
"remote.pairing.tailscale.subtitle": "Private Kopplung über das Tailnet, das Host und zu koppelndes Gerät teilen.",
diff --git a/src/locales/en.json b/src/locales/en.json
index 293b0f0101..c8d262ed73 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -4859,6 +4859,7 @@
"accounts.addChatgpt": "Add another ChatGPT account",
"accounts.addChatgptWorkspaceNote": "ChatGPT Business and Enterprise organizations can block adding an account here (OpenAI shows 3p_delegated_access_policy_denied).",
"accounts.chatgptSharedSetupNote": "Bots that use these accounts also share your own Codex setup: config.toml, skills and plugins, but not your own instructions (AGENTS.md).",
+ "accounts.chatgptDeviceHint": "Before you enter the code, check that ChatGPT shows the account you want here. If it shows another one, switch accounts there first.",
"accounts.nameLabel": "Account name",
"accounts.namePlaceholder": "Work",
"accounts.addSubmit": "Add and sign in",
diff --git a/src/locales/es.json b/src/locales/es.json
index 6b69e6c59f..d3c62ca6c8 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -3321,6 +3321,7 @@
"accounts.removeBodyChatgpt": "Esto cierra la sesión de la cuenta y la quita de {app}.",
"accounts.addClaude": "Añadir otra cuenta de Claude",
"accounts.addChatgpt": "Añadir otra cuenta de ChatGPT",
+ "accounts.chatgptDeviceHint": "Antes de introducir el código, comprueba que ChatGPT muestra la cuenta que quieres aquí. Si muestra otra, cambia de cuenta allí primero.",
"accounts.nameLabel": "Nombre de la cuenta",
"accounts.namePlaceholder": "Trabajo",
"accounts.addSubmit": "Añadir e iniciar sesión",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 5a15c23316..5d060b173f 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -1464,6 +1464,7 @@
"engines.claudeUpdated": "Claude mis à jour — {version}",
"engines.updatedTo": "Mis à jour vers {version}",
"engines.account.signInHint": "Exécutez exactement cette commande dans un terminal sur l’ordinateur qui exécute {app}, terminez la connexion Claude CLI, puis cliquez sur « Vérifier le compte ». Si vous consultez {app} à distance, exécutez-la là-bas, pas sur cet appareil.",
+ "accounts.chatgptDeviceHint": "Avant de saisir le code, vérifiez que ChatGPT affiche le compte voulu ici. S'il en affiche un autre, changez d'abord de compte dans ChatGPT.",
"engines.none": "Aucune application de fournisseur de modèles détectée pour l’instant.",
"remote.pairing.tailscale.title": "Appairage via Tailscale",
"remote.pairing.tailscale.subtitle": "Appairage privé via le tailnet partagé par l'hôte et l'appareil à associer.",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index 044528f21f..f47297a2c5 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -1462,6 +1462,7 @@
"engines.claudeUpdated": "Claude अपडेट हुआ — {version}",
"engines.updatedTo": "{version} पर अपडेट हुआ",
"engines.account.signInHint": "{app} चला रहे कंप्यूटर के टर्मिनल में यही कमांड चलाएँ, Claude CLI साइन-इन पूरा करें, फिर खाता जाँचें पर क्लिक करें। अगर आप {app} को रिमोट से देख रहे हैं, तो इसे वहीं चलाएँ, इस डिवाइस पर नहीं।",
+ "accounts.chatgptDeviceHint": "कोड डालने से पहले देख लें कि ChatGPT वही खाता दिखा रहा है जो आप यहाँ चाहते हैं। अगर कोई दूसरा खाता दिखे, तो पहले वहाँ खाता बदलें।",
"engines.none": "अभी कोई मॉडल प्रदाता ऐप नहीं मिला।",
"remote.pairing.tailscale.title": "Tailscale से जोड़ना",
"remote.pairing.tailscale.subtitle": "होस्ट और जोड़े जा रहे डिवाइस की साझा tailnet से निजी पेयरिंग।",
diff --git a/src/locales/it.json b/src/locales/it.json
index 524b4c2ed5..6cee113ae2 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -4852,6 +4852,7 @@
"accounts.addChatgpt": "Aggiungi un altro account ChatGPT",
"accounts.addChatgptWorkspaceNote": "Le organizzazioni ChatGPT Business ed Enterprise possono impedire di aggiungere un account qui (OpenAI mostra 3p_delegated_access_policy_denied).",
"accounts.chatgptSharedSetupNote": "I bot che usano questi account condividono anche la tua configurazione Codex: config.toml, abilità e plugin, ma non le tue istruzioni (AGENTS.md).",
+ "accounts.chatgptDeviceHint": "Prima di inserire il codice, controlla che ChatGPT mostri l'account che vuoi qui. Se ne mostra un altro, cambia prima account lì.",
"accounts.nameLabel": "Nome account",
"accounts.namePlaceholder": "Lavoro",
"accounts.addSubmit": "Aggiungi e accedi",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index f080a68f94..775e99677f 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -4135,6 +4135,7 @@
"accounts.removeBodyAntigravity": "このアカウントとそのサインイン情報を {app} から削除します。他の Antigravity アカウントは接続されたままです。",
"accounts.addClaude": "別のClaudeアカウントを追加",
"accounts.addChatgpt": "別のChatGPTアカウントを追加",
+ "accounts.chatgptDeviceHint": "コードを入力する前に、ChatGPT にここで使いたいアカウントが表示されているか確認してください。別のアカウントが表示されている場合は、先にそちらでアカウントを切り替えてください。",
"accounts.nameLabel": "アカウント名",
"accounts.namePlaceholder": "仕事用",
"accounts.addSubmit": "追加してサインイン",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 99abf16edf..60114547cb 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -3937,6 +3937,7 @@
"accounts.removeBodyAntigravity": "이 계정과 로그인 정보를 {app}에서 제거해요. 다른 Antigravity 계정은 연결된 채로 남아요.",
"accounts.addClaude": "다른 Claude 계정 추가",
"accounts.addChatgpt": "다른 ChatGPT 계정 추가",
+ "accounts.chatgptDeviceHint": "코드를 입력하기 전에 ChatGPT에 여기서 사용할 계정이 표시되는지 확인하세요. 다른 계정이 표시되면 먼저 그곳에서 계정을 전환하세요.",
"accounts.nameLabel": "계정 이름",
"accounts.namePlaceholder": "업무",
"accounts.addSubmit": "추가하고 로그인",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 9773f285bf..8349676c85 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -3635,6 +3635,7 @@
"accounts.removeBodyAntigravity": "To usunie konto i jego logowanie z {app}. Twoje pozostałe konta Antigravity pozostaną połączone.",
"accounts.addClaude": "Dodaj inne konto Claude",
"accounts.addChatgpt": "Dodaj inne konto ChatGPT",
+ "accounts.chatgptDeviceHint": "Zanim wpiszesz kod, sprawdź, czy ChatGPT pokazuje konto, którego chcesz tu użyć. Jeśli pokazuje inne, najpierw przełącz tam konto.",
"accounts.nameLabel": "Nazwa konta",
"accounts.namePlaceholder": "Praca",
"accounts.addSubmit": "Dodaj i zaloguj się",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index cdadd9256a..e8df74fa65 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -4541,6 +4541,7 @@
"accounts.addChatgpt": "Adicionar outra conta do ChatGPT",
"accounts.addChatgptWorkspaceNote": "Organizações do ChatGPT Business e Enterprise podem bloquear a adição de uma conta aqui (a OpenAI mostra 3p_delegated_access_policy_denied).",
"accounts.chatgptSharedSetupNote": "Os bots que usam essas contas também compartilham a sua configuração do Codex: config.toml, skills e plugins, mas não as suas próprias instruções (AGENTS.md).",
+ "accounts.chatgptDeviceHint": "Antes de digitar o código, confira se o ChatGPT mostra a conta que você quer aqui. Se mostrar outra, troque de conta lá primeiro.",
"accounts.nameLabel": "Nome da conta",
"accounts.namePlaceholder": "Trabalho",
"accounts.addSubmit": "Adicionar e entrar",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 244330dae4..b83c89c439 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -3683,6 +3683,7 @@
"accounts.removeBodyAntigravity": "Аккаунт и его вход будут удалены из {app}. Ваши другие аккаунты Antigravity останутся подключёнными.",
"accounts.addClaude": "Добавить ещё один аккаунт Claude",
"accounts.addChatgpt": "Добавить ещё один аккаунт ChatGPT",
+ "accounts.chatgptDeviceHint": "Прежде чем вводить код, проверьте, что ChatGPT показывает нужный здесь аккаунт. Если показан другой, сначала переключите аккаунт там.",
"accounts.nameLabel": "Название аккаунта",
"accounts.namePlaceholder": "Работа",
"accounts.addSubmit": "Добавить и войти",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index c04be5b0ff..47513cc48b 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -4365,7 +4365,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"es": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -11001,7 +11002,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"fr": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -15042,7 +15044,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"hi": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -18935,7 +18938,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"ja": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -27105,7 +27109,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"pt-br": {
"voice.gemini.keyPlaceholder": "8c87ba2043a4a89d63c90cae8a6dafd5cbd193652e923b97988e381a74773e10",
@@ -38990,7 +38995,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"zh": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -49352,7 +49358,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"zh-tw": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -59801,7 +59808,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"uk": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -64114,7 +64122,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"vi": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -70245,7 +70254,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"tr": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -76376,7 +76386,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"pl": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -83708,7 +83719,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"ru": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -91094,7 +91106,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"it": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -102898,7 +102911,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
},
"ko": {
"connectedWorkspaces.localTitle": "7d6deafeab011d734c3fdd1bfd6f69544fbb746a004019269bdb48544b01164b",
@@ -110758,7 +110772,8 @@
"settings.features.skillBurgerLine": "727e1768d70f546045efe8b15d1ee23510993af8689549bc6fdfb84c40cccc15",
"settings.features.threadTabs": "af4220066028642bd47d7d9296d6c0a8d0f751c76e679bc7808e56a709303b30",
"settings.features.threadTabsLine": "0a9fe8a611767b2544e475a51a146ae6199ae2583e6330426fb281f79a38ef89",
- "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27"
+ "settings.features.error": "2610cc2e3f901d171a740d9d9b5a897d8437d42e6f5ecf7dd71a57b4e4c63b27",
+ "accounts.chatgptDeviceHint": "ac45a424f79364c07f769cf0f1274a6be3b2732690bac2a8ee4ecc03b1e6933d"
}
}
}
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 763800365a..27f7231e06 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -2975,6 +2975,7 @@
"accounts.removeBodyChatgpt": "Bu işlem hesabın oturumunu kapatır ve hesabı {app}'tan kaldırır.",
"accounts.addClaude": "Başka bir Claude hesabı ekle",
"accounts.addChatgpt": "Başka bir ChatGPT hesabı ekle",
+ "accounts.chatgptDeviceHint": "Kodu girmeden önce ChatGPT'nin burada istediğiniz hesabı gösterdiğini kontrol edin. Başka bir hesap gösteriyorsa önce orada hesap değiştirin.",
"accounts.nameLabel": "Hesap adı",
"accounts.namePlaceholder": "İş",
"accounts.addSubmit": "Ekle ve giriş yap",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index fced011fb9..b054fdd2c4 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -1771,6 +1771,7 @@
"engines.updatedTo": "Оновлено до {version}",
"engines.account.signInHint": "Виконайте цю команду в терміналі на комп'ютері, де працює {app}, завершіть вхід Claude CLI, потім натисніть «Перевірити акаунт». Якщо ви дивитеся {app} віддалено, запускайте там, а не на цьому пристрої.",
"engines.account.powershell": "Для цієї команди використайте PowerShell.",
+ "accounts.chatgptDeviceHint": "Перш ніж вводити код, перевірте, що ChatGPT показує потрібний тут обліковий запис. Якщо показано інший, спочатку перемкніть обліковий запис там.",
"engines.none": "Застосунків провайдерів моделей ще не виявлено.",
"engines.footer": "«Задати CLI» прив'язує провайдера моделей до конкретного бінарника — версійної збірки, скрипта-обгортки або абсолютного шляху. Зміни зберігаються лише коли обраний провайдер неактивний. Інші провайдери продовжують працювати.",
"engines.library.custom": "Своя модель",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 0d7604cf0f..fabb59ac7c 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -2975,6 +2975,7 @@
"accounts.removeBodyChatgpt": "Thao tác này đăng xuất tài khoản và gỡ tài khoản khỏi {app}.",
"accounts.addClaude": "Thêm tài khoản Claude khác",
"accounts.addChatgpt": "Thêm tài khoản ChatGPT khác",
+ "accounts.chatgptDeviceHint": "Trước khi nhập mã, hãy kiểm tra ChatGPT đang hiển thị đúng tài khoản bạn muốn dùng ở đây. Nếu đó là tài khoản khác, hãy chuyển tài khoản ở đó trước.",
"accounts.nameLabel": "Tên tài khoản",
"accounts.namePlaceholder": "Công việc",
"accounts.addSubmit": "Thêm và đăng nhập",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 10949f96ca..b1bc78a571 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -4293,6 +4293,7 @@
"accounts.addChatgpt": "新增其他 ChatGPT 帳號",
"accounts.addChatgptWorkspaceNote": "ChatGPT Business 和 Enterprise 組織可能會封鎖在這裡新增帳號(OpenAI 會顯示 3p_delegated_access_policy_denied)。",
"accounts.chatgptSharedSetupNote": "使用這些帳號的機器人也會共用你自己的 Codex 設定:config.toml、技能和外掛,但不包括你自己的指示(AGENTS.md)。",
+ "accounts.chatgptDeviceHint": "輸入代碼前,請確認 ChatGPT 顯示的是你要在這裡使用的帳戶。如果顯示的是其他帳戶,請先在那裡切換帳戶。",
"accounts.nameLabel": "帳號名稱",
"accounts.namePlaceholder": "工作",
"accounts.addSubmit": "新增並登入",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index bc1a65af0a..df44ce9bab 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -8800,6 +8800,7 @@
"engines.unhideAria": "重新显示 {name}",
"engines.unhiding": "正在重新显示…",
"accounts.addChatgptWorkspaceNote": "ChatGPT Business 和 Enterprise 组织可能禁止在这里添加账号(OpenAI 会返回 3p_delegated_access_policy_denied)。",
+ "accounts.chatgptDeviceHint": "输入代码前,请确认 ChatGPT 显示的是你要在这里使用的账户。如果显示的是其他账户,请先在那里切换账户。",
"claudeEndpoints.title": "自定义终结点",
"claudeEndpoints.hint": "让这个账号的机器人在 DeepSeek、GLM 或任何兼容 Claude Code API 的主机上运行。它是一个独立的引擎,所以这台电脑上的 Claude Code 及其登录不受影响。",
"claudeEndpoints.empty": "还没有自定义终结点。",