Setup key
OpenAI Admin API anahtarını yapılandırın veya güncelleyin (/codex-hud:costs-*'u etkinleştirir)
Kaynak: davepoon/claude-code-subagents-collection · MIT
OpenAI Admin API anahtarını yapılandırın veya güncelleyin (/codex-hud:costs-*'u etkinleştirir)
Kaynak: davepoon/claude-code-subagents-collection · MIT
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/setup-key/raw -o .claude/commands/setup-key.mdHedef dosya: .claude/commands/setup-key.md
This command is only needed for dollar-cost tracking via /codex-hud:costs-today/week/month. Rate limits, token usage, and the statusline work without it.
First, check the current state:
node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" setup --json
If "status": "connected", tell the user the key is already configured and working. Offer to replace it (optional).
If "status": "no_key" or the user wants to replace the key:
IMPORTANT — never ask the user to paste the key into the chat. Anything typed into the conversation is stored in session transcripts. Use the clipboard instead.
Tell the user:
sk-admin-...) — leave it in the clipboardThen ask via AskUserQuestion:
If the user confirms, read the key from the clipboard and pipe it via stdin (macOS; on Linux substitute wl-paste or xclip -selection clipboard -o):
pbpaste | node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" setup --key-stdin --json
On success ("status": "saved"), tell the user it was saved and verified, and suggest clearing the clipboard:
printf '' | pbcopy
On failure, show the error and suggest they re-copy the key from the URL above and try again.