Skip to main content
Commands, package names, and image names on this page come from the open-source project that Mibyan Desktop is built on, and can differ from the Mibyan Desktop installer. For the supported Mibyan install and update path, see Install and update.
Python dependency commands on this page use a PM-prepared source checkout. After a dependency change, reactivate the checkout and restart Mibyan. This guide gets you from zero to a working Mibyan setup that survives real use. Install, choose a provider, verify a working chat, and know exactly what to do when something breaks.

Who this is for

  • Brand new and want the shortest path to a working setup
  • Switching providers and don’t want to lose time to config mistakes
  • Setting up Mibyan for a team, bot, or always-on workflow
  • Tired of “it installed, but it still does nothing”

The fastest path

Pick the row that matches your goal: Rule of thumb: if Mibyan cannot complete a normal chat, do not add more features yet. Get one clean conversation working first, then layer on gateway, cron, skills, voice, or routing.

1. Install Mibyan

To easily install the command-line and desktop applications, download the Mibyan Desktop installer from our website and run it.

Without Mibyan Desktop:

For a command-line only install without Mibyan Desktop, run: For aarch64 Android devices, use the separate Termux APT guide.

Linux / macOS / WSL2

Mibyan Desktop is installed from the Mibyan Desktop download, or launched from an existing Mibyan CLI with mibyan desktop. See Install and update.

Windows (native)

Run in powershell:
Mibyan Desktop is installed from the Mibyan Desktop download, or launched from an existing Mibyan CLI with mibyan desktop. See Install and update.
After it finishes, reload your shell:
For detailed installation options, prerequisites, and troubleshooting, see the Installation guide.

2. Choose a Provider

The single most important setup step. Use mibyan model to walk through the choice interactively:
Easiest path: Nous PortalOne subscription covers 300+ models plus the Tool Gateway (web search, image generation, TTS, cloud browser). On a fresh install:
That logs you in, sets Nous as your provider, and turns on the Tool Gateway in one command.
Setup modesOn a fresh install, mibyan setup offers three modes:
  • Quick Setup (Nous Portal) — OAuth login, no API keys to manage; sets up a model plus the Tool Gateway tools, billed to your Nous Portal subscription. The recommended fast path.
  • Full Setup — walk through every provider, tool, and option yourself (bring your own keys).
  • Blank Slate — everything starts off except the bare minimum needed to run an agent: provider & model, the File Operations toolset, and the Terminal toolset. No web, browser, code execution, vision, memory, delegation, cron, skills, plugins, or MCP servers — and compression, checkpoints, smart routing, and memory capture are all disabled. After the minimal baseline is applied, you choose one of two paths: start with everything disabled (finish now with the minimal agent), or walk through all configurations (opt in to tools, skills, plugins, MCP, and messaging). Pick this when you want a minimal, fully-controlled agent and intend to enable only exactly what you need.
Blank Slate writes an explicit platform_toolsets.cli list plus agent.disabled_toolsets, so nothing you didn’t choose ever loads — not even after mibyan update. Re-enable anything later with mibyan tools, seed skills with mibyan skills opt-in --sync, or tune settings with mibyan setup agent.
Good defaults: For most first-time users: choose a provider, accept the defaults unless you know why you’re changing them. The full provider catalog with env vars and setup steps lives on the Providers page.
Minimum context: 64K tokensMibyan requires a model with at least 64,000 tokens of context. Models with smaller windows cannot maintain enough working memory for multi-step tool-calling workflows and will be rejected at startup. Most hosted models (Claude, GPT, Gemini, Qwen, DeepSeek) meet this easily. If you’re running a local model, set its context size to at least 64K (e.g. --ctx-size 65536 for llama.cpp or -c 65536 for Ollama).
You can switch providers at any time with mibyan model — no lock-in. For a full list of all supported providers and setup details, see AI Providers.

How settings are stored

Mibyan separates secrets from normal config:
  • Secrets and tokens → ~/.mibyan/.env
  • Non-secret settings → ~/.mibyan/config.yaml
The easiest way to set values correctly is through the CLI:
The right value goes to the right file automatically.

3. Run Your First Chat

You’ll see a welcome banner with your model, available tools, and skills. Use a prompt that’s specific and easy to verify:
Pick your interfaceMibyan ships with two terminal interfaces: the classic prompt_toolkit CLI and a newer TUI with modal overlays, mouse selection, and non-blocking input. Both share the same sessions, slash commands, and config — try each with mibyan vs mibyan --tui.
What success looks like:
  • The banner shows your chosen model/provider
  • Mibyan replies without error
  • It can use a tool if needed (terminal, file read, web search)
  • The conversation continues normally for more than one turn
If that works, you’re past the hardest part.

4. Verify Sessions Work

Before moving on, make sure resume works:
That should bring you back to the session you just had. If it doesn’t, check whether you’re in the same profile and whether the session actually saved. This matters later when you’re juggling multiple setups or machines.

5. Try Key Features

Use the terminal

The agent runs terminal commands on your behalf and shows results.

Slash commands

Type / to see an autocomplete dropdown of all commands:

Multi-line input

Press Alt+Enter, Ctrl+J, or Shift+Enter to add a new line. Shift+Enter requires a terminal that sends it as a distinct sequence (Kitty / foot / WezTerm / Ghostty by default; iTerm2 / Alacritty / VS Code terminal once the Kitty keyboard protocol is enabled). Alt+Enter and Ctrl+J work in every terminal.

Interrupt the agent

If the agent is taking too long, type a new message and press Enter — it interrupts the current task and switches to your new instructions. Ctrl+C also works.

6. Add the Next Layer

Only after the base chat works. Pick what you need:

Bot or shared assistant

Connect Telegram, Discord, Slack, WhatsApp, Signal, Email, or Home Assistant, or Microsoft Teams.

Automation and tools

  • mibyan tools — tune tool access per platform
  • mibyan skills — browse and install reusable workflows
  • Cron — only after your bot or CLI setup is stable

Sandboxed terminal

For safety, run the agent in a Docker container or on a remote server:
For Docker sandboxes, you can also enable the egress credential-injection proxy so the sandbox never sees your real API keys — only opaque proxy tokens that work exclusively from behind a local TLS-intercepting daemon. See Egress proxy. Setup is mibyan egress setup && mibyan egress start; mibyan setup terminal also points Docker users at it. Modal, SSH, Daytona, and Singularity are not wired yet.

Voice mode

Run mibyan tools and configure the Voice providers. Then enable /voice on in the CLI and press Ctrl+B to record. PM handles missing supported requirements; a dependency change can require a restart. Local Faster-Whisper is not available on every architecture. See Voice Mode.

Skills

Skills are on-demand instruction documents that teach Mibyan how to do a specific task — deploy to Kubernetes, open a GitHub PR, fine-tune a model, search for GIFs. Each is a SKILL.md file with a name, a description, and a step-by-step procedure. The agent reads the short descriptions for free and only loads a skill’s full content when a task actually calls for it, so adding skills doesn’t bloat every request. Mibyan ships with a catalog of bundled skills already installed in ~/.mibyan/skills/. You can add more from the Skills Hub, or write your own. Browse and install from the hub:
The install argument is a source/path slug from the hub — openai/skills/k8s means the k8s skill from OpenAI’s catalog. mibyan skills browse shows the exact slugs to use. Use a skill — every installed skill becomes a slash command automatically:
This works in the CLI and in any connected messaging platform. You don’t have to install everything up front — the agent picks the right bundled skill on its own during normal conversation when a task matches one. See Skills System for writing your own, external skill directories, and the full hub source list.

MCP servers

Editor integration (ACP)

ACP support ships with the standard [all] extras, so the curl installer already includes it. Just run:
(If you installed without [all], run cd ~/.mibyan/mibyan-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)" first.) See ACP Editor Integration.

Common Failure Modes

These are the problems that waste the most time:

Recovery Toolkit

When something feels off, use this order:
  1. mibyan doctor
  2. mibyan model
  3. mibyan setup
  4. mibyan sessions list
  5. mibyan --continue
  6. mibyan gateway status
That sequence gets you from “broken vibes” back to a known state fast.

Quick Reference

Next Steps