docs(cli): drop AGENTSFLEET_TOKEN; document AGENTSFLEET_API_KEY precedence#103
Open
indykish wants to merge 1 commit into
Open
docs(cli): drop AGENTSFLEET_TOKEN; document AGENTSFLEET_API_KEY precedence#103indykish wants to merge 1 commit into
indykish wants to merge 1 commit into
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. |
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 the
AGENTSFLEET_TOKENenvironment variable across all CLI documentation and replaces it with the simplerAGENTSFLEET_API_KEY-wins-over-stored-login model. The auth-precedence foragentsfleet logintoken seeding is updated to--token→ stdin → browser (dropping the env-var step), and every CI, troubleshooting, and reference example is updated consistently.cli/configuration.mdx— rewrites Auth precedence to the new TTY-agnostic model; consolidates the env-var table from two rows (AGENTSFLEET_TOKEN+AGENTSFLEET_API_KEY) to one; updates the CI usage example.cli/agentsfleet.mdx— updatesloginflag docs,logoutnote, andauth statusdescription to reflectAGENTSFLEET_API_KEYas the active-credential override rather thanAGENTSFLEET_TOKEN.agents/troubleshooting.mdx,quickstart.mdx,api-reference/introduction.mdx— narrower touch-ups replacing the removed variable name and correcting thecredentialspath (adding.jsonsuffix).Confidence Score: 5/5
Documentation-only PR; all five files are updated consistently with no leftover AGENTSFLEET_TOKEN references.
Every occurrence of AGENTSFLEET_TOKEN has been replaced with the correct variable, the auth-precedence prose is internally consistent across all files, and the incidental credentials path fix (adding .json) is a net improvement. No logic, code, or API contracts are touched.
No files require special attention; the acknowledged provenance note (agent-key vs tenant-key) is intentionally deferred per the PR description.
Important Files Changed
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] G[agentsfleet login] --> H{--token flag?} H -->|Yes| I[Validate and persist token] H -->|No| J{stdin pipe?} J -->|Yes| I J -->|No| K{Interactive terminal?} K -->|Yes| L[Browser device flow] L --> I K -->|No or --no-input| M[Exit with error]%%{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] G[agentsfleet login] --> H{--token flag?} H -->|Yes| I[Validate and persist token] H -->|No| J{stdin pipe?} J -->|Yes| I J -->|No| K{Interactive terminal?} K -->|Yes| L[Browser device flow] L --> I K -->|No or --no-input| M[Exit with error]Reviews (1): Last reviewed commit: "docs(cli): drop AGENTSFLEET_TOKEN; docum..." | Re-trigger Greptile