Skip to content

Commit 01ecac2

Browse files
chaodu-agentpahud超渡法師
authored
docs: fix claude authentication command (#739)
* docs: fix claude authentication command in claude-code.md Replace `claude setup-token` with `claude auth login` for container auth. `claude setup-token` generates a long-lived token for CI/scripts without saving it locally. For container deployments with PVC persistence, `claude auth login` is the correct command — it authenticates via OAuth device flow and stores credentials on disk. Ref: https://docs.anthropic.com/en/docs/claude-code/cli-usage * fix: update remaining setup-token refs and wording nit Address review comments: - Replace claude setup-token with claude auth login in NOTES.txt - Replace claude setup-token with claude auth login in wizard.rs - Improve wording: 'restart the pod so the bot process loads the new credentials' --------- Co-authored-by: pahud <[email protected]> Co-authored-by: 超渡法師 <[email protected]>
1 parent ed4fedc commit 01ecac2

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

charts/openab/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Agents deployed:
3232
kubectl exec -it deployment/{{ include "openab.agentFullname" (dict "ctx" $ "agent" $name) }} -- codex login --device-auth
3333
{{- else if eq (toString $cfg.command) "claude-agent-acp" }}
3434
Authenticate:
35-
kubectl exec -it deployment/{{ include "openab.agentFullname" (dict "ctx" $ "agent" $name) }} -- claude setup-token
35+
kubectl exec -it deployment/{{ include "openab.agentFullname" (dict "ctx" $ "agent" $name) }} -- claude auth login
3636
{{- else if eq (toString $cfg.command) "gemini" }}
3737
Authenticate:
3838
kubectl exec -it deployment/{{ include "openab.agentFullname" (dict "ctx" $ "agent" $name) }} -- gemini

docs/claude-code.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ working_dir = "/home/node"
3535

3636
## Authentication
3737

38+
Sign in interactively using the OAuth device flow. Credentials are stored on disk (persisted via PVC across pod restarts):
39+
40+
```bash
41+
kubectl exec -it deployment/openab-claude -- claude auth login
42+
```
43+
44+
After authenticating, restart the pod so the bot process loads the new credentials:
45+
3846
```bash
39-
kubectl exec -it deployment/openab-claude -- claude setup-token
47+
kubectl rollout restart deployment/openab-claude
4048
```
49+
50+
> **Note:** `claude setup-token` is a different command — it generates a long-lived token for CI/scripts and prints it without saving locally. For container-based deployments, `claude auth login` is the correct approach as it persists credentials to the filesystem.

src/setup/wizard.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ fn print_next_steps(agent: &str, output_path: &Path, is_local: bool) {
525525
cprintln!(C.cyan, " 1. Install Claude Code + ACP adapter:");
526526
println!(" npm install -g @anthropic-ai/claude-code @agentclientprotocol/claude-agent-acp");
527527
cprintln!(C.cyan, " 2. Authenticate:");
528-
println!(" claude setup-token");
528+
println!(" claude auth login");
529529
}
530530
"codex" => {
531531
cprintln!(C.cyan, " 1. Install Codex CLI + ACP adapter:");
@@ -560,7 +560,7 @@ fn print_next_steps(agent: &str, output_path: &Path, is_local: bool) {
560560
" kubectl exec -it deployment/openab-kiro -- kiro-cli login --use-device-flow"
561561
),
562562
"claude" => println!(
563-
" kubectl exec -it deployment/openab-claude -- claude setup-token"
563+
" kubectl exec -it deployment/openab-claude -- claude auth login"
564564
),
565565
"codex" => println!(
566566
" kubectl exec -it deployment/openab-codex -- codex login --device-auth"

0 commit comments

Comments
 (0)