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.68-py3-none-win_arm64.whl (8.2 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

mothx_installer-1.1.68-py3-none-musllinux_1_2_x86_64.whl (8.7 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.68-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.68-py3-none-manylinux_2_17_s390x.whl (8.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.68-py3-none-manylinux_2_17_ppc64le.whl (8.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.68-py3-none-macosx_11_0_arm64.whl (8.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.68-py3-none-macosx_10_15_x86_64.whl (8.9 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 0d70e28282387d01f2702653b76542624999e356176f9ee9bd9f5937bc82f3f7
MD5 30a1eb37036c8932e7eef94ca7922a04
BLAKE2b-256 89d4402c94aac9f95668e024207beda866ff405f8fa6ba990c0c4fbeb3fe70d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 193d8b58a334549b704470f3d2e82ed0614e7d68c3f43ed194ff427fabe122b1
MD5 be2950ade2544314406eae08cf92076a
BLAKE2b-256 e78ea10ba569a46535a65be8d80f651e88294be5fbabd0132caef6e52da8ed66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 00371c596a475571dbfc97964625bef52936900ed3968f0938026be4cf325b90
MD5 5cfd4f9bbaedfc44094379a60a8cf98b
BLAKE2b-256 e12d4a639f568a9305d34219f0142e250b5fa8abac5be33e3e50d443be05ef67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0f80d922bb1353e4c2756780e8dd6d1d7de26817921b711ebc2023565945b2e0
MD5 cd3f1c28704a76c95e93c9a9c7f7c85a
BLAKE2b-256 770ae4d3a8358dd354c64e9dcb987cdeb5ae218b19ec96b6a87090663bd62e3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b1bcf2df2654a95fd6bdcd8f303bebfa977f48b032c1277c38f82532a3cafe10
MD5 44e017ef8b7e61091ad7ca5f6fd5dfee
BLAKE2b-256 2ee946f575c6b20067b0bc520d4ce9e28c40282f2ebbd4cf43be5fbcade2b5bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 5ab473e5090c265a34a1e94bb2cf7b081a8304e2a45d6b4c38120b57b3dc8db1
MD5 85194b150297b2f5c15e7cee73655203
BLAKE2b-256 f80a433b31f33f5cdb92a82a6a3488c9697272e4d14e1e15e6e6268998f1603f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 fd59d9df56fc2298e6a78ef0b873a90d2a191ab0e83deff9063694bd8961a563
MD5 3925d4ef9b9b94fed0ff5a19d9d24924
BLAKE2b-256 8e7d9e65d55f58dc0a73b4b5249e5055bafdf7cb3998ffec834b0640e777bb76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e3c83c0a0ffe8d7703d928d004875765d6d49029e816393e4ed847ccec41525c
MD5 6831df945f123e3f0fb0fc7bb997e2c3
BLAKE2b-256 87f57d1f13140c1da99aa25b12f7c3ebaf396154c44b299a9f240763009201dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f11787d7cadf84fe4f47792926df5aaec722f85687527ef817a1396ffa3629e2
MD5 3ac7b91e5dc506939723c34c19ed1b4a
BLAKE2b-256 20de41f3270db46977f37886f4f2a6778d3e99ed4482dc37707acd72d568a39f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.68-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 e4a0bdb2da5352a8cb50f0d38ec61b4567cf70c778a672961a1a8b405d615945
MD5 3c3e018c2e884af57c57ef1de947f9ce
BLAKE2b-256 331de4aa1a7e8b8e1e2a93c5f7b1304875dda58ff82c341659cf19e5e1fe2aea

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