XibeCode

Setup wizard

Interactive xibecode setup for API providers, 24/7 gateway, and agent defaults.

Setup wizard

xibecode setup walks you through first-time configuration: LLM provider + API key, optional 24/7 Xibe Daemon (Telegram / Discord / Slack), and agent defaults.

Commands

# Full wizard (model → gateway → agent)
xibecode setup

# Sections only
xibecode setup model
xibecode setup gateway
xibecode setup agent

# Model + Telegram only
xibecode setup --quick

# Print flags/env guidance (CI / headless)
xibecode setup --non-interactive

Requires an interactive TTY for the numbered menus. In CI, use config flags instead (see Non-interactive).

What it configures

1. Model & provider (setup model)

  1. Numbered provider list — full XibeCode catalog (Routing.run, zenllm.org, Anthropic, OpenAI, OpenRouter, DeepSeek, Gemini, Grok, Z.AI, Kimi, MiniMax, Fireworks, Novita, local LM Studio, Azure Foundry, models.dev-backed catalogs, and more).
  2. API key — stored in your profile (~/.xibecode/profile-*.json).
  3. Default model — provider presets or custom id.
  4. Base URL — optional override for proxies / OpenAI-compatible endpoints.
  5. Request format — OpenAI or Anthropic wire format from the provider preset.
  6. Mirrors the key into ~/.xibecode/daemon.env / gateway.env for the always-on daemon.

See Providers for the full table.

2. 24/7 daemon (setup gateway)

Optional Telegram (and Discord/Slack via env) configuration:

  • Writes TELEGRAM_BOT_TOKEN, TELEGRAM_ALLOWED_USERS, etc. to ~/.xibecode/daemon.env (or gateway.env)
  • Can install and start the systemd user service (xibecode-daemon) for always-on coding from chat

CLI primary command is xibecode daemon (xibecode gateway is an alias). See Xibe Daemon for /cmd, /update, steer mode, media, start/stop, and pairing.

3. Agent defaults (setup agent)

  • Working directory preferences
  • Max iterations0 means unlimited (recommended for long autonomous tasks; abort with Ctrl+C or daemon /stop)
  • Cost mode and related caps
  • Auto-compact stays on by default (see Agent engine)

Non-interactive / CI

xibecode config --set-key YOUR_API_KEY
xibecode config --set-provider anthropic
xibecode config --set-model claude-sonnet-4-6
xibecode config --show

Daemon without the wizard:

# Edit ~/.xibecode/daemon.env  (or gateway.env)
TELEGRAM_BOT_TOKEN=...
TELEGRAM_ALLOWED_USERS=your_user_id
ANTHROPIC_API_KEY=...   # or provider-specific key

xibecode daemon --install --workdir /path/to/repo
xibecode daemon --start
# alias: xibecode gateway --install / --start
CommandPurpose
xibecode configInteractive or flag-based profile edits
Chat /setupIn-session provider/key/model (chat TUI only)
xibecode diagnosticsRedacted diagnostics bundle
xibecode update --checkCheck for newer npm CLI (never silent apply)

Note: CLI xibecode setup is the full onboarding path. Chat slash /setup only updates the active chat profile for that session.

Ctrl+I
Assistant

How can I help?

Ask me about configuration, installation, or specific features.