docs(cli): drop AGENTSFLEET_TOKEN; document AGENTSFLEET_API_KEY precedence#103
Merged
Conversation
…dence The CLI removed the `AGENTSFLEET_TOKEN` environment variable. The service API key `AGENTSFLEET_API_KEY` is now the sole env-sourced bearer and wins over a stored `login` session at the wire. - cli/configuration.mdx — rewrite Auth precedence to the new model (no TTY-dependence): API key wins over stored credentials; login seeding is `--token` → stdin → browser. Drop the env-var table row; update the CI example to `AGENTSFLEET_API_KEY`. - cli/agentsfleet.mdx — login/logout/auth-status: token resolution is `--token` → stdin; the env-seeding example and the auth-status source list now use `AGENTSFLEET_API_KEY`. - quickstart.mdx, agents/troubleshooting.mdx — non-interactive auth uses `--token`/stdin or a standing `AGENTSFLEET_API_KEY`. - api-reference/introduction.mdx — curl example uses `$AGENTSFLEET_API_KEY`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
…env-docs # Conflicts: # cli/configuration.mdx
Drop the long 'A teammate that owns the outcome' section for the short marketing statement, replace the multi-step Get started block with the single curl one-liner used on the marketing site, and point readers to the quickstart to start their first fleet. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion docs update for the CLI change in agentsfleet/agentsfleet#431, which removes the
AGENTSFLEET_TOKENenvironment variable and makesAGENTSFLEET_API_KEYwin over a storedloginsession at the wire.Changes
AGENTSFLEET_API_KEY) wins over stored credentials; login seeding is--token→ stdin → browser. Dropped theAGENTSFLEET_TOKENenv-var table row; CI example now exportsAGENTSFLEET_API_KEY.logintoken resolution is now--token→ stdin; the env-seeding example,logoutnote, andauth statussource list useAGENTSFLEET_API_KEY.--token/stdin or a standingAGENTSFLEET_API_KEY.$AGENTSFLEET_API_KEY.Note for reviewers
cli/configuration.mdxstill describesAGENTSFLEET_API_KEY's provenance as "fromagentsfleet agent-key add" (pre-existing). PerAUTH.md, control-plane CLI auth wants anagt_t…tenant key (dashboard → Settings → API keys), not anagt_a…agent key — worth reconciling separately; left as-is here to keep this PR scoped to theAGENTSFLEET_TOKENremoval.🤖 Generated with Claude Code
Greptile Summary
This PR removes
AGENTSFLEET_TOKENacross all CLI docs and replaces it withAGENTSFLEET_API_KEYas the single env-var auth mechanism, reflecting the upstream CLI change in agentsfleet/agentsfleet#431. The new model is TTY-agnostic:AGENTSFLEET_API_KEYunconditionally wins over a stored login session;agentsfleet loginnow seeds only via--tokenor piped stdin.cli/configuration.mdx— auth precedence rewritten,AGENTSFLEET_TOKENenv-var row dropped, CI snippet updated; also removes the previously inaccurate "fromagentsfleet agent-key add" provenance claim.cli/agentsfleet.mdx,agents/troubleshooting.mdx,quickstart.mdx,api-reference/introduction.mdx— all updated consistently to dropAGENTSFLEET_TOKENand referenceAGENTSFLEET_API_KEY.index.mdx— replaces the npm-based multi-step quickstart with acurl | bashone-liner and removes the product narrative; these changes appear unrelated to the token deprecation and are not described in the PR body.Confidence Score: 5/5
Safe to merge — all token-removal changes are consistent across the five auth-related files and the docs accurately reflect the new precedence model.
The AGENTSFLEET_TOKEN → AGENTSFLEET_API_KEY migration is applied uniformly across every affected file, the precedence descriptions are internally consistent, and the JWT-decoding nuance in auth status is handled correctly. The index.mdx homepage restructuring is unexplained but does not introduce any incorrect documentation.
index.mdx — contains homepage copy and install-method changes unrelated to the token deprecation, without explanation in the PR description.
Important Files Changed
--token(login-only) andAGENTSFLEET_TOKEN, replacing withAGENTSFLEET_API_KEY→ stored credentials. Credentials path now consistently includes.jsonextension.$AGENTSFLEET_TOKENto$AGENTSFLEET_API_KEY. Clean and accurate.auth statusprose all updated consistently.auth statusnow correctly qualifies JWT-claim decoding as "when present", sinceAGENTSFLEET_API_KEYis a service key, not a JWT.AGENTSFLEET_TOKENrow removed from env-var table; CI usage snippet updated. Removed the previously-inaccurate "fromagentsfleet agent-key add" provenance claim from theAGENTSFLEET_API_KEYrow.AGENTSFLEET_TOKEN, addsAGENTSFLEET_API_KEYguidance for ongoing machine auth. Accurate and consistent with other files.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[CLI command issued] --> B{AGENTSFLEET_API_KEY set?} B -- Yes --> C[Send API key as bearer] B -- No --> D{credentials.json exists?} D -- Yes --> E[Send stored login JWT] D -- No --> F[Unauthenticated / error] subgraph login ["agentsfleet login token resolution"] G[--token flag] -->|highest priority| H[Validate & persist token] I[piped stdin] --> H J[Browser device flow] -->|interactive TTY only| H end style C fill:#22c55e,color:#fff style F fill:#ef4444,color:#fff%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD A[CLI command issued] --> B{AGENTSFLEET_API_KEY set?} B -- Yes --> C[Send API key as bearer] B -- No --> D{credentials.json exists?} D -- Yes --> E[Send stored login JWT] D -- No --> F[Unauthenticated / error] subgraph login ["agentsfleet login token resolution"] G[--token flag] -->|highest priority| H[Validate & persist token] I[piped stdin] --> H J[Browser device flow] -->|interactive TTY only| H end style C fill:#22c55e,color:#fff style F fill:#ef4444,color:#fffPrompt To Fix All With AI
Reviews (3): Last reviewed commit: "docs: tighten landing intro to marketing..." | Re-trigger Greptile