Skip to main content

Setup Wizard

The setup wizard configures xops.bot on first run. It walks you through selecting a role preset, agent workspaces, communication channels, DevOps tools, a safety mode, and your LLM provider, then generates all the configuration files you need.

First Run

The wizard launches automatically when no configuration exists at ~/.openclaw/openclaw.json. If you already have a config file, you can re-run the wizard manually (see Re-running the Wizard below).

bun run wizard

Step 1: Welcome

The wizard opens with the xops.bot ASCII art banner followed by a welcome screen. The welcome note describes the 6 selections you will make and shows where configuration files will be saved:

  • ~/.openclaw/openclaw.json -- OpenClaw main config
  • ~/.xopsbot/workspaces/ -- Agent workspace files

Step 2: Role Preset

Choose a role preset to pre-populate your configuration, or select Custom for full manual control.

PresetToolsSafety
DevOps Starterkubectl, docker, awsStandard
SREkubectl, promtool, logcli, jaegerStandard
Platform Engineerterraform, ansible, aws, kubectlStandard
Custom(choose manually)(choose manually)

Selecting a preset pre-populates workspaces, tools, and safety mode in the following steps. You can modify any of these defaults -- presets suggest, they do not lock.

Selecting Custom gives the manual wizard flow where you choose everything yourself.

tip

If you are unsure which preset to choose, start with DevOps Starter. It covers the most common tools and you can install additional plugins later.

For more details on what each preset includes, see Presets.

Step 3: Agent Workspaces

Choose which specialized DevOps agents to enable. Use arrow keys to navigate and space to toggle. At least one workspace is required.

WorkspaceAgentDescription
k8s-agentK8s BotKubernetes operations specialist
rca-agentRCA BotRoot cause analysis specialist
incident-agentIncident BotIncident response specialist
finops-agentFinOps BotCost optimization specialist
platform-agentPlatform BotPlatform engineering (IaC)

By default, k8s-agent and rca-agent are pre-selected.

tip

Start with K8s Bot and RCA Bot if you are primarily doing Kubernetes operations. Add more agents as your needs grow.

Step 4: Communication Channels

Select which messaging platforms xops.bot should connect to. Channels are optional -- the terminal UI (TUI) works without any channels enabled.

ChannelDescription
TelegramPopular for personal bots
DiscordGreat for team servers
SlackEnterprise team communication
Microsoft TeamsMicrosoft 365 integration

Channel tokens are not collected during the wizard. After the wizard completes, you configure each channel's bot token as an environment variable. The generated config includes placeholder values (e.g., <TELEGRAM_BOT_TOKEN>) to remind you which tokens to set.

Step 5: DevOps Tools

Select the DevOps tools you will use with xops.bot. At least one tool is required. kubectl is pre-selected by default.

ToolDescription
kubectlKubernetes CLI
DockerContainer management
AWS CLIAmazon Web Services
TerraformInfrastructure as Code
AnsibleConfiguration management
PromtoolPrometheus metrics queries
LogCLILoki log analysis
JaegerDistributed tracing

The generated config includes sensible environment variable defaults for each tool:

ToolEnvironment Variables
kubectlKUBECONFIG=~/.kube/config
DockerDOCKER_HOST=unix:///var/run/docker.sock
AWS CLIAWS_PROFILE=default, AWS_REGION=us-east-1
TerraformTF_WORKSPACE=default
AnsibleANSIBLE_CONFIG=~/.ansible.cfg

Step 6: Safety Mode

Select a safety mode that controls how infrastructure mutations are handled.

ModeBehaviorWhen to Use
SafeRead-only operations only. All mutations blocked.Monitoring and investigation
Standard (Recommended)Mutations require explicit approval before execution.Most environments
FullAll operations allowed without prompts.Development only

Standard mode is selected by default.

caution

Never use Full mode in staging or production environments. Standard mode ensures every mutation is reviewed before execution.

Step 7: LLM Provider

Select which LLM provider to use for agent conversations.

ProviderDefault ModelAPI Key Env Var
Anthropic (Claude)anthropic/claude-sonnet-4-5ANTHROPIC_API_KEY
OpenAI (ChatGPT)openai/gpt-4oOPENAI_API_KEY
Google (Gemini)google/gemini-2.5-proGOOGLE_API_KEY

Anthropic is selected by default.

The wizard does not collect credentials. It detects whether the corresponding API key environment variable is already set. If the key is detected, you will see a success message. If not, the wizard shows instructions for setting it:

export ANTHROPIC_API_KEY="your-key-here"
# or
openclaw login

Generated Configuration

After all selections are made, the wizard automatically generates your configuration:

  1. Installs preset plugins -- If you selected a preset, its plugins are installed before config generation
  2. Creates directories -- ~/.xopsbot/workspaces/, ~/.xopsbot/skills/, ~/.openclaw/
  3. Copies workspace templates -- Selected agent workspaces are copied to ~/.xopsbot/workspaces/
  4. Writes active-preset marker -- If a preset was selected, the preset name is saved to ~/.xopsbot/active-preset
  5. Generates OpenClaw config -- ~/.openclaw/openclaw.json is written with:
    • Agent list from selected workspaces
    • Channel configuration with placeholder tokens
    • Tool environment variables
    • Selected provider model as the default
    • Safety mode applied to tool deny lists

A summary is displayed showing all your selections and the files created.

Example Generated Config Structure

{
agents: {
defaults: {
model: { primary: "anthropic/claude-sonnet-4-5" },
sandbox: { mode: "off" }
},
list: [
{ id: "xops-k8s", name: "K8s Agent", default: true, workspace: "~/.xopsbot/workspaces/k8s-agent", tools: { profile: "coding", deny: [] } },
// ... more agents
]
},
channels: {
telegram: { enabled: true, token: "<TELEGRAM_BOT_TOKEN>" }
},
env: {
KUBECONFIG: "~/.kube/config"
}
}

Next Steps

After the wizard completes:

  1. Set channel tokens (if you selected any channels):

    export TELEGRAM_BOT_TOKEN="your-telegram-token"
    export SLACK_BOT_TOKEN="your-slack-token"
  2. Set your API key (if not already in environment):

    export ANTHROPIC_API_KEY="your-key-here"
  3. Start OpenClaw:

    openclaw

Your agents will be available based on the workspaces you selected.

Re-running the Wizard

You can re-run the wizard at any time to change your configuration:

bun run wizard

Alternatively, delete the config file to trigger first-run detection:

rm ~/.openclaw/openclaw.json

Existing workspace files and configuration will be overwritten with the new selections.

Cancellation

Press Ctrl+C at any step to cancel the wizard. No files will be created or modified.