Authentication
The ChatbotX MCP Server authenticates every tool request using a Workspace Token:- Request Header (Recommended for IDEs and CLI tools): Pass the token in the
x-workspace-tokenHTTP header (orx-chatbo-token). - URL Query Parameter (For web connectors): Pass the token as
?token=YOUR_WORKSPACE_TOKENor?workspace_token=YOUR_WORKSPACE_TOKEN. Use this for clients like Perplexity Computer that cannot set custom request headers. - Environment Variable (For local stdio processes): Set
CHATBOTX_API_KEY=YOUR_WORKSPACE_TOKENin the environment.
Find or copy your token in the ChatbotX dashboard under Settings > Integrations > Workspace token.
Connect your client
Select your platform below to view setup commands and configuration files. Clients that share the same configuration format are grouped into unified tabs.- OpenClaw & NanoClaw
- Hermes Agent
- Claude Code
- Codex
- Antigravity & Paperclip
- Perplexity Computer
OpenClaw and NanoClaw are autonomous agent runtimes in the Claw ecosystem. Both connect to ChatbotX using the official Or configure within
chatbotx skill and workspace credentials.OpenClaw
OpenClaw runs as a background gateway and connects to messaging channels like Telegram:1
Install Node.js v22 and OpenClaw
2
Configure OpenClaw
3
Install ChatbotX skill
Install the official skill from ClawHub:Configure your environment variables in
~/.openclaw/.env:For self-hosted instances, set
CHATBOTX_API_URL to your custom backend origin (e.g. https://app.yourdomain.com/api). If using a self-signed certificate, add CHATBOTX_ALLOW_SELF_SIGNED_CERT=true.4
Start gateway and verify
NanoClaw
NanoClaw provides lightweight, container-isolated personal agent execution in sandboxed Docker containers.Run the container directly with environment variables:nanoclaw.json:Self-Hosted Reverse Proxy Configuration
When hosting ChatbotX behind Nginx or Caddy, ensure your reverse proxy supports long-lived Server-Sent Events (SSE) by disabling proxy buffering.Nginx
Caddy
Caddy streams SSE natively. Ensure timeouts allow long-lived connections:Additional Guide: Create and Secure a Telegram Bot
Both OpenClaw and Hermes allow you to interact with your AI assistant using Telegram. To set this up, you need a Telegram Bot Token and your personal Chat ID for security.Step 1: Create a Telegram Bot
- Open the Telegram app, search for the official @BotFather (verified with a blue checkmark), and click Start.
- Send the
/newbotcommand. - Enter a display name for your bot (e.g.
ChatbotX Assistant). - Enter a unique username ending in
bot(e.g.chatbotx_mcp_bot). - Copy the Telegram Bot Token provided (e.g.
123456789:ABCdefGhIJKlmNoPQRs...).
Step 2: Retrieve Your Chat ID for Security
To prevent unauthorized users from executing commands on your ChatbotX workspace via the Telegram bot, restrict bot access to your Telegram account using your Chat ID:- Search for @userinfobot on Telegram and click Start.
- Copy the Id number returned in the message.
- Save this Chat ID in your OpenClaw or Hermes configuration wizard to restrict access.