Skip to main content

AI coding assistant for the terminal

Project description

Rename notice: VibeCoding is now MothX. PyPI install name: mothx-installer (pipx install mothx-installer or pip install mothx-installer).

MothX

MothX was formerly known as VibeCoding. Each wheel includes a platform-native mothx binary. The vibecoding console command is still registered as a compatibility alias during the rename transition.

Installation

pip install mothx-installer

Or with an isolated environment:

pipx install mothx-installer

After installation, the mothx command is available on your PATH.

Quick Start

# Set your API key
export DEEPSEEK_API_KEY=sk-...

# Start an interactive session
mothx

# Or ask a question directly
mothx -P "Write a Go HTTP server"

Choose Your Mode

Every session runs in one of three modes, switchable anytime with Tab or /mode:

Mode Files Network Best For
Plan Read-only Analysis, code review, safe exploration
Agent Read/Write Daily development (default)
YOLO Full System administration, automation
mothx --mode plan     # read-only
mothx --mode agent    # standard (default)
mothx --mode yolo     # full access

Multi-Provider Support

Switch providers with a single flag:

# DeepSeek (default)
mothx --provider deepseek-openai --model deepseek-v4-flash

# OpenAI
mothx --provider openai --model gpt-4o

# Anthropic
mothx --provider anthropic --model claude-3-5-sonnet-20241022

# 20+ vendor adapters supported: Gemini, Kimi, Volcengine, Mistral,
# OpenRouter, Groq, Bedrock, GitHub Copilot, and more

Session Management

MothX persists conversation history in SQLite with branching support:

mothx                    # start new session
mothx --continue         # resume last session
mothx --resume <id>      # resume a specific session
mothx --session <file>   # open a specific session file

Sessions live in ~/.mothx/sessions/ (Linux/macOS) or %APPDATA%\mothx\sessions\ (Windows).

Print / CI Mode

Use MothX in non-interactive mode for scripting and CI/CD:

mothx -P "Write unit tests for auth.go"
mothx -P "Generate a CHANGELOG from git log" > CHANGELOG.md
echo "Explain this function" | mothx -P

Use --mode plan for read-only tasks and pair with --print to fail fast when approval is required.

Think Mode

Enable deeper reasoning for complex problems:

mothx --thinking high "Solve this architecture problem"

Levels: off, minimal, low, medium, high, xhigh — toggle in TUI with /think.

Security & Sandboxing

MothX uses bubblewrap for process-level isolation. Three layers of protection:

  • Blacklist — dangerous commands (rm -rf, sudo) are always blocked, even in YOLO mode
  • Approval gates — Agent mode prompts before executing bash commands
  • Whitelist — pre-approve safe commands in settings.json:
{
  "approval": {
    "bashWhitelist": ["go ", "make ", "git ", "npm "],
    "bashBlacklist": ["rm -rf", "sudo"],
    "confirmBeforeWrite": true
  }
}

Skills System

Skills are reusable prompt snippets for project conventions:

# List skills
> /skills

# Activate a skill
> /skill my-conventions

Place SKILL.md files in:

  • Global~/.mothx/skills/<name>/SKILL.md
  • Project.skills/<name>/SKILL.md (overrides global)

Compatible with SkillHub for discovering and sharing community skills.

IDE Integration

MothX speaks Agent Client Protocol (ACP), integrating with VS Code, Zed, and JetBrains IDEs.

VS Code

Add to .vscode/settings.json:

{
  "acp.agents": {
    "mothx": {
      "command": "mothx",
      "args": ["acp", "--mode", "agent"]
    }
  }
}

JetBrains (IntelliJ, WebStorm, etc.)

Go to Settings → Tools → ACP Agents and add:

  • Name: MothX
  • Command: mothx
  • Arguments: acp --mode agent

Serve Mode

Run MothX as a unified OpenAI-compatible HTTP API, Web UI, and messaging server:

mothx serve

Config in ~/.mothx/serve.json or .mothx/serve.json. Ideal for team sharing, CI/CD pipelines, messaging channels, and embedding into your own tools.

Multi-Agent Mode

Enable sub-agent delegation and cron workflows:

mothx --multi-agent

Sub-agent tools: subagent_spawn, subagent_status, subagent_send, subagent_destroy.

For a single blocking investigation:

mothx --delegate

Messaging Channels

Deploy MothX as a chatbot on WeChat, Feishu, or WebSocket:

mothx serve

Messaging channel config lives in serve.json. Each user gets an independent, persistent session.

Keyboard Shortcuts

Shortcut Action
Enter Submit prompt
Alt+Enter / Ctrl+J Insert newline
Tab Cycle mode (plan → agent → yolo)
Esc Abort current operation
Ctrl+O Open tool details
Ctrl+G Toggle compact display
Ctrl+T Toggle thinking display

Supported Platforms

  • Linux x86_64, arm64, ppc64le, s390x
  • Linux musl x86_64, arm64
  • macOS x86_64, arm64
  • Windows x64, arm64

Other platforms (LoongArch64, RISC-V64, *BSD) are available via npm install -g mothx-installer or the one-line installer.

Diagnostics

mothx doctor

Checks config files, API connections, sandbox, MCP servers, sessions, and skills.

Uninstall

pip uninstall mothx-installer

# or if you used pipx:
pipx uninstall mothx-installer

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mothx_installer-1.1.66-py3-none-win_arm64.whl (8.1 MB view details)

Uploaded Python 3Windows ARM64

mothx_installer-1.1.66-py3-none-win_amd64.whl (9.2 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.66-py3-none-musllinux_1_2_x86_64.whl (8.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.66-py3-none-musllinux_1_2_aarch64.whl (8.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.66-py3-none-manylinux_2_17_x86_64.whl (8.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.66-py3-none-manylinux_2_17_s390x.whl (8.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.66-py3-none-manylinux_2_17_ppc64le.whl (8.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.66-py3-none-manylinux_2_17_aarch64.whl (8.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.66-py3-none-macosx_11_0_arm64.whl (8.3 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.66-py3-none-macosx_10_15_x86_64.whl (8.8 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file mothx_installer-1.1.66-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 63ae0449e681326c6b2df29c8dc0882499ee6fcc0a6fef6eb73e9ac615894055
MD5 5f0db62ff6cda90d007e1db9c577cb2a
BLAKE2b-256 027d621612d6988df0123704a105e09763a16eeb263f2a437640bf00a0911c9f

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 06bc852743fb618989f81baf538cc0e3490defb559ef38714864a88c9b497a75
MD5 636948634b8590c608288ddc9a47f46f
BLAKE2b-256 7e62832b007e07e3a5f30911fa1cc0826ccc88a2528005ebaa8cdaf4a2ecd856

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4230205b6a3c3c54558199b403dca77dc1a3af5682266296d3c6b1a1b4d9e51e
MD5 8b4fc055b6f9c1aa53f873d7b1fdafb4
BLAKE2b-256 b8b0fd25daf8cf1bc1d26a538e5754b9be1a97b106f2e21db1e77580c0c501cb

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c29179ded7f328e2dff0dfd4ab60af5490d907d75dcb8dcd219a8098d0c13567
MD5 0494162abfda31f1160250d88ecefcec
BLAKE2b-256 4b2c05c9852f6d26f95a3d32a41076ee291a37d7f0a531e2520097a837c7f211

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5b42f8152628b38615ece1db6581d97515575440b3d482e0c542624fc412fae6
MD5 30e914c03a39575688291d6192225248
BLAKE2b-256 c9c242748205cc94a17d8a2b976e3c476e05f4ac9c984e7602e5c6d958a53eae

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-manylinux_2_17_s390x.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 78e39c13f296463d9d4c83e7a337a119b93253fb08a8320e6548bc85911133c1
MD5 b86822296460ce5589b45cf8283038fa
BLAKE2b-256 5070787d261d867c44c13e3ec209a7eb49581bfbf39bb2dda2a294972585568a

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-manylinux_2_17_ppc64le.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 081bd4aff292b36928d2f90906cc5cc3ce85e7156cbd1c2b4a0b5b7ff8825d00
MD5 b61c91af7c71e7b272aca134323cf24e
BLAKE2b-256 65fd3f4d005fc71162f0182152435f2dc0412e7775a78b65263e28c3a1cef9a2

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5d7b7b7bab7a672351d2034b08b495d66abc28dde0364e680e4a139ec8125698
MD5 99fce1d8736156878d27f1b91182362a
BLAKE2b-256 8ef800f3b43fcfd0cd29303949983c8c77b328775b01a21685aa140fb1cfd426

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b36cba60ede8e59e3c98b34529cde5715d423eaccbf45e516cd77b3b7c52c23
MD5 f4ddcd153f046949659ea3d14a85e0fe
BLAKE2b-256 593fddbca9ebb874d9e15e2dc9d71af8b5b0da699631894baf534b2ec0b802d6

See more details on using hashes here.

File details

Details for the file mothx_installer-1.1.66-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.66-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 e3fb1c2786864388c689d354a8a8f10cbe5d4f0bff95823e22e696c4be9f3e02
MD5 86cd59b61cfc5aa6690b6ce267dc57d9
BLAKE2b-256 4d6f5a0d6098983bedc36a52fc54506961db110b53177a58ae640a6eabf339ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page