返回 CodeWhale
docs-auth.ts
根目录 / web / lib / i18n / dictionaries / en / docs-auth.ts
1 import type { DocsAuthDict } from "../types";
2
3 /**
4 * English reference dictionary for `app/[locale]/docs/auth/page.tsx`.
5 * Statements trace to docs/CONFIGURATION.md ("codewhale login"), docs/
6 * CODEWHALE_AGENT.md, and docs/PROVIDERS.md. Commands are code-owned
7 * literals typeset by the page.
8 */
9 export const docsAuth: DocsAuthDict = {
10 metaTitle: "Account & keys · Codewhale Docs",
11 metaDescription:
12 "Provider keys versus the optional Codewhale account: how each is set, where each is stored, and what needs no account at all.",
13 bodyClassName: "text-ink-soft leading-relaxed",
14 overviewTitle: "Account & keys",
15 overviewLead:
16 "Codewhale holds two unrelated kinds of credential, and it helps to keep them apart. A provider key lets a model answer. A Codewhale account is optional and gates the managed surfaces — cloud agents and chat channels. Installing and running the local runtime needs neither an account nor a key.",
17 credentials: [
18 ["Provider key (BYOK)", "Your own key for DeepSeek, OpenAI, Anthropic, OpenRouter, a local runtime, or any other route. Set with {authSet}. Required for model replies."],
19 ["Codewhale account", "A browser device-flow session started by {login}. Optional. Gates cloud agents and the Codewhale Agent surfaces; never required locally."],
20 ],
21 providerTitle: "Provider keys",
22 providerLead:
23 "{authSet} saves the key for one provider. A process-level {apiKeyFlag} still wins for a single run. {login} is not a provider-key command: provider credentials are configured exclusively through {authSet}.",
24 accountTitle: "The account session",
25 accountLead:
26 "{login} is the same browser device flow as {accountLogin}. The session is scoped to the selected {profile}, and the older {cloud} spelling remains an alias.",
27 accountCommands: [
28 ["codewhale login", "Sign in through the browser device flow."],
29 ["codewhale account status", "Show the session for the selected profile."],
30 ["codewhale account logout", "Remove that session."],
31 ],
32 storageTitle: "Where sessions live",
33 storageLead:
34 "Account sessions prefer the operating system's credential manager and fall back automatically to the private, 0600 Codewhale secrets file when no credential manager is available — headless hosts, SSH, containers.",
35 vaultTitle: "The account's own key vault",
36 vaultLead:
37 "{keys} manages the signed-in account's bring-your-own-key vault without ever displaying a secret value.",
38 portableTitle: "Moving to another machine",
39 portableLead:
40 "{portable} writes a secret-free bundle: credential and machine-specific keys are dropped, never replaced with a redacted placeholder, so the file is safe to carry and nothing in it can sign in as you.",
41 appTitle: "Sign in on the web",
42 appLead:
43 "The hosted Codewhale app carries the same account. Sign in or register there; the local runtime keeps working without it.",
44 appSignIn: "Sign in →",
45 appRegister: "Register →",
46 sourceNote:
47 "Source documents: docs/CONFIGURATION.md, docs/CODEWHALE_AGENT.md, docs/PROVIDERS.md · Update docs-map.ts when changing.",
48 };
49
49 lines TYPESCRIPT