Como Configurar o ClawdBot em um VPS: O Guia Definitivo
Se você está buscando uma maneira eficiente e tecnicamente acessível de gerenciar seu servidor ou bot no Discord, o ClawdBot é uma excelente escolha. Este artigo oferece um passo a passo detalhado de como configurar o ClawdBot (também conhecido como MoltBot ou Openclaw) em um servidor privado virtual (VPS). Vamos explorar os requisitos, o processo de instalação e dicas para otimizar seu uso.
O que é o ClawdBot?
O ClawdBot é um bot versátil projetado para a plataforma Discord, fornecendo diversas funcionalidades, como moderação, jogos, e muito mais. Por ser open-source, pode ser personalizado para atender a necessidades específicas, o que o torna uma opção popular entre administradores de servidores.
Por que usar um VPS?
Um VPS, ou Servidor Privado Virtual, oferece mais controle e recursos em comparação com soluções de hospedagem compartilhada. Com um VPS, você pode instalar qualquer software, configurar seu ambiente como preferir e ter um desempenho melhor para bots e aplicativos.
Requisitos
Antes de começar, certifique-se de atender aos seguintes requisitos:
- Acesso a um VPS: Escolha um provedor confiável (DigitalOcean, AWS, Linode, etc.)
- Conhecimentos Básicos em Terminal: Familiaridade com comandos básicos do Linux.
- Node.js e NPM: O ClawdBot pode ser executado em Node.js, então é necessário ter essas ferramentas instaladas.
Passo a Passo da Instalação do ClawdBot em um VPS
Passo 1: Conectar ao VPS
Primeiramente, você precisa se conectar ao seu VPS via SSH. Abra seu terminal e use o seguinte comando:
bash
ssh usuario@ip_do_seu_vps
Substitua usuario pelo seu nome de usuário e ip_do_seu_vps pelo endereço IP do seu VPS.
Passo 2: Instalar Node.js e NPM
Para instalar o Node.js e o NPM, você pode usar o gerenciador de pacotes do seu sistema. No Ubuntu, por exemplo, execute:
bash
sudo apt update
sudo apt install nodejs npm
Verifique a instalação com:
bash
node -v
npm -v
Passo 3: Clonar o Repositório do ClawdBot
Agora, você precisa clonar o repositório do ClawdBot. Use o comando git clone para copiar os arquivos do repositório:
bash
git clone https://github.com/SeuUsuario/ClawdBot.git
Lembre-se de substituir https://github.com/SeuUsuario/ClawdBot.git pela URL correta do repositório.
Passo 4: Navegar até o Diretório do ClawdBot
Entre no diretório do ClawdBot:
bash
cd ClawdBot
Passo 5: Instalar Dependências
Uma vez dentro do diretório, você deve instalar todas as dependências necessárias que o ClawdBot requer. Execute:
bash
npm install
Passo 6: Configurar o Bot
Você precisará configuração o seu bot, criando um arquivo .env no diretório do ClawdBot. Insira as informações necessárias, como o Token do Discord que você obtém ao criar um aplicativo no Portal de Desenvolvedores do Discord.
Exemplo de como o seu .env pode ser:
plaintext
DISCORD_TOKEN=seu_token_aqui
PREFIX=!
Passo 7: Executar o Bot
Para iniciar o bot, use o seguinte comando:
bash
node index.js
Dica: Você pode usar ferramentas como PM2 para manter seu bot em execução em segundo plano e reiniciá-lo automaticamente em caso de falhas.
Passo 8: Conectar-se ao Discord
Finalmente, para que seu bot funcione, você precisa convidá-lo para seu servidor Discord. Para isso, gere um link de convite no Portal de Desenvolvedores do Discord, escolhendo as permissões que deseja conceder ao bot.
Dicas de Otimização e Manutenção
Atualizações Regulares: Mantenha seu ClawdBot atualizado com as últimas versões do repositório. Isso garante acesso a novas funcionalidades e correções de segurança.
Logs e Monitoramento: Considere implementar logs para acompanhar a performance do bot e identificar potenciais problemas rapidamente.
Backup: Realize backups regulares de suas configurações e dados. Isso é crucial para a recuperação em caso de falhas.
Teste as Funcionalidades: Antes de aplicar novas funcionalidades em um ambiente de produção, teste as alterações em um servidor de teste para garantir que tudo funcione como esperado.
Conclusão
Configurando o ClawdBot em um VPS, você ganha flexibilidade e controle sobre como gerenciar seu bot do Discord, além de melhorar a performance e a segurança. Com este guia, você deve estar pronto para colocar seu bot em funcionamento rapidamente. Não se esqueça de acompanhar a comunidade do ClawdBot para atualizações, dicas e suporte.
Com isso, você tem um potente aliado na gestão do seu servidor Discord. Siga os passos, explore as funcionalidades do ClawdBot e leve a sua experiência no Discord para o próximo nível. Boa sorte!


Doesnt work……
How can we add third party api like brave api?
Great video, thanks!
thanks for your video
Thank You for the great Content – I was about to pull trigger on Hostinger but they raised the price now its 190$ with Coupon:(
Fantastic vid, thanks man.
FYI, the json code looks different and if you're not careful, you'll cause yourself 6 hours of pain like I did.
Great video, worked right away! I had tried for hours myself before without success. Switching from GPT 5.2 to GPT 5 mini will be very expensive otherwise.
Why are many Youtubers doing this only on Hostinger? Like to see a tutorial on a VPS that doesnt have Openclaw options anywhere on a VPS but from scratch.
If the Openclaw chat agent is not responding, make sure you buy a credit for your API and refresh everything in the Openclaw overview dashboard.
You forgot to mention that users need to add balance to their open ai api account. Using your paid chatgpt won't work. And also forgot to mention that this toy can be INSANELY expensive since it eats tokens when active.
Hey! My issue is once I reach the dashboard and input prompts, the ai does not answer back and is stuck in loading. I have a 64gb ram vps through contabo
I am a thumbnail designer
AT timestep of 07:03 – Connecting ClawdBot to Telegram , Should I remove the previously typed script in the "Raw" settings? and copy paste your provided JSON script?
Consider Contabo for your VPS, more for your money there
Thanks for this! I got all the way to the end and unfortunately I'm not getting a response within the chat openclaw dashboard
how to install browser on the instance?
What does the code snippet look like when I want to use openrouter?
I want to use Kimi API but there require only openai or claude , what should i do mentionning that i already bought kimi api
anybody else getting stuck trying to connect in openclaw? i input the token, hit connect, and nothing happens
I want to use copilot as my agent for OpenClaw on Hostinger. Anyone know how todo that?
Great video!
i cant get it working on hostinger for the life of me. wasted my entire day
Up and running. Thank you for this tutorial. Will report back on how my very IRL business in earthwork and utilities is affected.
5:20 – I was not saving this and couldn't figure it out. got it now. thanks.
Thanks Nic this tutorial was on point. I did run into the JSON5 having issues like Syntax errors. I asked chatgpt to review the JSON5 and it gave me a similar version. But i coped you're entire JSON5 template pasted it in, changed my token info and i clicked "UPDATE" and then Save and it worked! so maybe if anyone gets a Syntax error just do what i did. LOL all in all wow this is crazy! scary too. I'm thinking of literally getting a new laptop for it even if I'm accessing the vps from its own laptop. Just incase it decides to go crazy on me the entire laptop will be set with nothing lol
you can only use anthropic or openai ? not gemeni, is this correct ?
If i follow that jason file so when i chat hello will it respond or will it stay blank like rn
They have already changed the flow of how this set up works. It asks for the API ASAP upon logging in or setting up your account
I could not for the life of me set up the email. Many of the skills are disabled because they require brew? and when I ask it to set up the email or install the skills its just error after error
Exceptional tutorial!!
I can find the Botfather in a normal chat, but in a secret chat it doesn't let me find him. That's fucking weird.
I have followed the entire process, but while I am chatting with the agent, it is not responding to me there? What could be the possible reason? Entire things showing valid, still something got missed?
Thank you for the JSON!