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

Gateway Mode

Run MothX as an OpenAI-compatible HTTP server:

mothx gateway

Config in ~/.mothx/gateway.json or .mothx/gateway.json. Ideal for team sharing, CI/CD pipelines, 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

Hermes / Messaging Mode

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

mothx hermes

Config in ~/.mothx/hermes.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.58-py3-none-win_arm64.whl (6.8 MB view details)

Uploaded Python 3Windows ARM64

mothx_installer-1.1.58-py3-none-win_amd64.whl (7.8 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.58-py3-none-musllinux_1_2_x86_64.whl (7.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.58-py3-none-musllinux_1_2_aarch64.whl (6.8 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.58-py3-none-manylinux_2_17_x86_64.whl (7.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.58-py3-none-manylinux_2_17_s390x.whl (7.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.58-py3-none-manylinux_2_17_ppc64le.whl (6.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.58-py3-none-manylinux_2_17_aarch64.whl (6.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.58-py3-none-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.58-py3-none-macosx_10_15_x86_64.whl (7.5 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 88288d8ca29463ce2702af0607afbb1336bad33bec5fac4c1ddb555eb5404dd1
MD5 613bab0bc17c57f32eb7170192f2a716
BLAKE2b-256 f1f17cb9d18cb33192569b035d3a6cc064d38f6ca32e006e671c597880fac30c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4ad9b4ffafa62d90daee7873b0c406cda2f8961f4dbaf01493fe1c3612db6644
MD5 d9a3ec661e205cbc4ce25ad76a3dcd19
BLAKE2b-256 96d2962a740c048df5fa43488428d356114c866f9798776e91445654accda835

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6a2d38d63020048b49aa71cbce19e964f0496d1360e2ee1a09631688ce7c5e01
MD5 7d6a5d25979b235d60571830dfe4f165
BLAKE2b-256 0136afa57aaf3322c707d574ba911442b033d41f491be7e842c9141fed969566

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 66f70fcbd60a241e868278888fc748ef11f71e171df03c0d302875c117e74cf6
MD5 dd54d86155a5c411d0af7193ac646779
BLAKE2b-256 3297942b1214fd4a16fbb13271acde1d3047025e27bbc1274341dee0270b9819

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f2ed76ca4291b2de61de374ae77f651f5ad7b3cb111800ab9ece204dfe7b473e
MD5 6e220be83a10cd51c322f65eee5f144f
BLAKE2b-256 6eb998f8beab36f24ba61fa6dd7603cc5f9b003d944a00cc2949676517049f25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 36755bd523cf03b0de67a4176e5268f06e4ba7108942b13b709c0b9e7de5858c
MD5 cf95e9fcc2fc9b00f7ea3f9816e9fc0c
BLAKE2b-256 5ced9c292992225d18b06f65d16c54b88ed51a0a453ca7ebf769b6261fda9e81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 01cdffbabb47f603c0fb51bc6d5f81fbd4d8c7c25bc74db54a385bbd0a9f25d3
MD5 e338b22cc97f450f53878840fd8e1089
BLAKE2b-256 cb49375e8616ab3767e3b7156d905794b53c6af62c22ef61ebd355595354e0ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 1ece740da567b853313f60bfca7a58a57f742ed58714cfa87cb958e1d78ba745
MD5 15d32c579298fe4c85e59e35aee904ca
BLAKE2b-256 d4d195f7bcbb9eef87000200a42f1ebbcec6c17a0d7a7820364e1e90de94b7bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6120aca383be9b2d232daef4016cd429518510b5b2f80dbce81722bb3d3e19d7
MD5 dbf63d8db18aafa7e762c405399480b4
BLAKE2b-256 83b5292698baa7627f46a7485caee0d1a0ff30c74b0b44274d3cae84992cfd89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.58-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3730841b3748915335cc3e0cfd1f1437d62f12de122dacdc1109cb73fa3c7312
MD5 3c386e81a705551188686b01f0baabdb
BLAKE2b-256 60f5d454c3acce826414609fa88303e74498ae7da260dc0b440932a8db4f794f

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