Gerenciando API Keys — Segurança e Boas Práticas

Como gerenciar API keys no OpenClaw. Obter, configurar e proteger suas chaves de API.

API Keys

Obtendo KeysAnthropic
  1. Acesse console.anthropic.com
  2. Crie conta ou faça login
  3. Vá em API Keys
  4. Create Key
  5. Copie e guarde com segurança
OpenAI
  1. Acesse platform.openai.com
  2. API Keys no menu
  3. Create new secret key
  4. Copie imediatamente (não mostra de novo)
ConfigurandoVia CLI
openclaw auth add anthropic
# Cole a key quando pedido
Via Variável de Ambiente
export ANTHROPIC_API_KEY="sk-..."
SegurançaFaça
  • Guarde em password manager
  • Use variáveis de ambiente
  • Rotacione periodicamente
  • Monitore uso
Não Faça
  • Commit no git
  • Compartilhe publicamente
  • Use mesma key em muitos lugares
Limites
  • Monitore rate limits
  • Configure billing alerts
  • Entenda pricing