Skip to main content
Connect the ChatbotX CLI to your self-hosted instance using a Workspace token (API Key) and API URL. Save your credentials locally in the CLI configuration file:
  • --apiKey: Your Workspace token (found under Settings → Developer → API Keys or Settings → Integrations → Workspace token).
  • --apiUrl: The API URL of your ChatbotX instance.

Environment Variables

Use environment variables when you do not want secrets stored in shell history or shared scripts. The CLI will automatically detect them:

Custom API URL (Self-Hosted)

If you are self-hosting ChatbotX, point the CLI configuration or environment variables to your custom domain API endpoint:
Or via environment variables:

Override Configuration per Command

You can override the configured Workspace token and API URL for a single command by passing them as options:
If you are running a self-hosted instance:

Self-Signed Certificates

If your self-hosted instance uses a self-signed certificate, configure the CLI to allow secure connections. Using the CLI configuration:
Or using an environment variable:
Do not commit real Workspace tokens to git repositories. Use environment variables or a secret manager for automation scripts and CI/CD workflows.