Do Zero ao Assistente de IA em 5 Minutos

Escolha sua plataforma e siga o passo a passo. Você vai estar conversando com sua IA rapidinho.

Instalando no macOS

O jeito mais rápido de começar. Precisa de Node.js 18+.

1

Instale o OpenClaw

npm install -g openclaw
2

Rode o Assistente de Setup

Vai te guiar pela configuração de API key e ajustes básicos.

openclaw init
3

Inicie o Gateway

O gateway é o serviço de background do OpenClaw que cuida de todas as conexões.

openclaw gateway start
4

Diga Oi!

openclaw chat "Hello! What can you do?"

Pegue Sua API Key

O OpenClaw precisa de uma API key do seu provedor de IA preferido.

🟢 OpenAI (GPT-4)

  1. Vá em platform.openai.com
  2. Crie uma nova API key
  3. Copie e cole durante openclaw init

🟣 Anthropic (Claude)

  1. Vá em console.anthropic.com
  2. Navegue até API Keys
  3. Crie e copie sua key

🔵 OpenRouter (Multi-modelo)

  1. Vá em openrouter.ai
  2. Crie conta e adicione créditos
  3. Copie sua API key

Use qualquer modelo de qualquer provedor com uma key só!

Solução de Problemas

Problemas comuns e como resolver.

Command not found: openclaw

Make sure npm's global bin directory is in your PATH. Try:

npm config get prefix

Add the returned path + /bin to your shell's PATH variable.

Gateway won't start

Check if the port is already in use. The gateway runs on port 3000 by default.

lsof -i :3000  # macOS/Linux
netstat -ano | findstr :3000  # Windows

You can also try restarting: openclaw gateway restart

API key not working

Verify your API key is correctly set:

openclaw config show

Make sure there are no extra spaces. You can reset it with openclaw init.

WhatsApp QR code not appearing

The WhatsApp QR code is shown in the terminal. Make sure you run the command in a terminal that supports QR display. If issues persist, see the official WhatsApp docs.

🎉 Tudo Pronto!

Agora que o OpenClaw tá rodando, veja o que fazer em seguida: