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

Uploaded Python 3Windows ARM64

mothx_installer-1.1.60-py3-none-win_amd64.whl (8.6 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.60-py3-none-musllinux_1_2_x86_64.whl (8.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.60-py3-none-musllinux_1_2_aarch64.whl (7.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.60-py3-none-manylinux_2_17_x86_64.whl (8.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.60-py3-none-manylinux_2_17_s390x.whl (8.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.60-py3-none-manylinux_2_17_ppc64le.whl (7.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.60-py3-none-manylinux_2_17_aarch64.whl (7.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.60-py3-none-macosx_11_0_arm64.whl (7.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.60-py3-none-macosx_10_15_x86_64.whl (8.3 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 8f813051f94f0c852632f92ad400955693a1407cc3f6e65dd92036625730ce07
MD5 2c69c52adbe8c5eecf020f8d1b8b2955
BLAKE2b-256 31ad22bd2c359ee1663cd8fa764d59b51c1a85ba92eaff4bd2450e86b584de29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 50523d24e813b8f3fd6f74ec53a1c822dccbc173a4679b476775ee48b9a728fc
MD5 5b756566d3326b4e492ea8b059e68695
BLAKE2b-256 8bb92878da434284c81fdbf16547ae2c078892929552f8a8dd7dbca71531a9f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fecad9998ec85c8d564c07816ffaa0eaee4849eae76bb772d4c38fbea6e32ce0
MD5 fb7da194be6978ac4b15f759daae5b6d
BLAKE2b-256 8fd8ea4f497f2a812790a34353790984565622f3bbd563dcaf0c109d27a88735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b5bcb8a7a6befb5ff0759420e6e6c7c22eeac7f3b8479189a00e01fd37eb8faa
MD5 2902f6d8645eff93075414aec7a6570f
BLAKE2b-256 e7d4953a56ceacedeb337632e17c4dcdb572ba7a7592e6ae3231d2892092a384

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 930f2ed11e16401c5caff52be90f7a38e6885d4fc5f2c76a22cd67677c0815ef
MD5 df7f9d76de788cac951d5614297a130b
BLAKE2b-256 8f832b62fa94a1ba026f1316e01270b052f36e506205ec9f9a2601bd85c3d385

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 c9629390c10de29325da05d31829aa7ed785d1a0a81717135af1906d54f6cdc6
MD5 5be030103c311eac690cca6c03305e57
BLAKE2b-256 f648d5475febaa85c59612aacb1266149edbd7e5973dc0ce1556836f13adb3a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 c48c5964520cc5cd29ff4988a4dc9414de23ec2eb8099d1d104195a8b06f8b4d
MD5 f7837708e45ed4a8314ae5ebc8be8e07
BLAKE2b-256 24bf4dc8a417b38d0cddaf7648c8584fae58704be5269f24c70cf82ebdfa48ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f4a3e03be719a5abf978b3913b4c54eebb55dfb6b296f4160f389e6ecb9aad06
MD5 dcc9621652c42d0831ef34711016730f
BLAKE2b-256 465a6773005cb3a91fc4943ac79aecc0d281efd8f6a02aa61117a98e078b6bc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eed11d97ec033bbaea9e069f98cd053f774b78fc8d898b67d715caa37129e60c
MD5 eca695016fafd32771981c8d9d6d0389
BLAKE2b-256 f4dee0da70d729ce20bd6630f15361dec0430504e42dc0989778b37d9561a431

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.60-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 5531487380865417c75f628ce765fea69df4f16a5e5ebca06336cf1a6f8253a3
MD5 a962c105a91a194c6a555928fff1f815
BLAKE2b-256 4548252922c2190e3c5ce628fe2aa68848a91645c360c20814c0e9736219ff40

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