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

Uploaded Python 3Windows ARM64

mothx_installer-1.1.70-py3-none-win_amd64.whl (9.3 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.70-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.70-py3-none-musllinux_1_2_aarch64.whl (8.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.70-py3-none-manylinux_2_17_x86_64.whl (8.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.70-py3-none-manylinux_2_17_s390x.whl (8.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

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

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.70-py3-none-manylinux_2_17_aarch64.whl (8.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.70-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.70-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 d17029c0acd9b17f8846aa06ff710cdbbf06dfd8df7b83d1582a57ecc8fe7176
MD5 de3216d7a4e09bb4e10be01bd1240ea6
BLAKE2b-256 fde02314f660ddfae2748a5cc3a5b52e35c7e8ecf831a5c1284fa08d2fe20150

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e4bf177408b02a339af1d4d97f73b53baa6704c1928450585ae88e2653965312
MD5 391aa533ea8e3a1d8668d2335ba9d289
BLAKE2b-256 91dc1679cdea0f3eff151ba9777a166c921e65eba71df48024a5d5728b34efa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8774b15d1fbbb826244f96d84647a6165cf7cd585b13c7d58fd25be351d76e53
MD5 07ce87d0b6a828732507256fa0429e35
BLAKE2b-256 c48c7645e53188626132245d8c3519ddf01caa474fb2e47ff259b546518c93d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b57fb5faf4f1950d0253b1c11f32e5c17fa1635ff401d21eba5905b67d5f5b71
MD5 107fcfb4a1e4fbbb690ab977d3ee3ac9
BLAKE2b-256 da21ff9e903bc1d24b8e016251cd93c6f8a0bc582ac8c092a38f2a8e2b23e752

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 be049e9ec8ce070a8ac4b8f51b667186e659c3525315d8b4e24313cb0a5dd7f9
MD5 bc1ff00ff0d16cddeb5e8cde635bd92e
BLAKE2b-256 96425372def687a475b4856bad76eb32135cd310edfdde7aa71ddcdabdfd7652

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 43ea83e89a272458b9b18b5193f8ee992963fb71fb2a2c380bf18dab68b1f5fd
MD5 f45ce684aa02c97aad5977158163c3c0
BLAKE2b-256 0e52ec15a6de83550817f620ddddf308c8439dbfc3b71b3a053b49c936c28efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 9069a0a2124778fa4d95b91f3414e2daf0b4ee2b2e66aa585216cb02adea0637
MD5 ac996dc10b979568c6e7e18831d11b25
BLAKE2b-256 cc7643a235f07b8ba8bb0b1d7b8cb7df0da84dc9e4bf90accb3160ce5c958498

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 a2a74f69db152e4f8c6a59c68f39d0c317739bd798b6b5fb1233c986e0850da8
MD5 22c20644357b9e951b24b76f51a3c3ef
BLAKE2b-256 caa4307f9aa03c00d8d630edaa19f9b0fb7767b051f8042e54f101da6f4047d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cba06af3cb5e722525d3629fd8a09a708888dd77924c763518f6ca62e7405891
MD5 73e22ef6dd08da207e61d892204e85f9
BLAKE2b-256 36b917a061150621eb300a4986f11257d12fad6423d44dce174ac0cb56358382

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.70-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d3063475df34d387ee28e9b9a64d94516ff2004b21ce379043b641aefe1d770f
MD5 427005ca5bda2165fa9789dd29bf70e9
BLAKE2b-256 d2e771b36601e00c04eebe081f5909732cf62df4d8e6c6049bb93e34f66abf8a

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