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

Uploaded Python 3Windows ARM64

mothx_installer-1.1.59-py3-none-win_amd64.whl (8.5 MB view details)

Uploaded Python 3Windows x86-64

mothx_installer-1.1.59-py3-none-musllinux_1_2_x86_64.whl (7.9 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.59-py3-none-musllinux_1_2_aarch64.whl (7.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.59-py3-none-manylinux_2_17_x86_64.whl (8.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mothx_installer-1.1.59-py3-none-manylinux_2_17_s390x.whl (7.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.59-py3-none-manylinux_2_17_ppc64le.whl (7.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

mothx_installer-1.1.59-py3-none-manylinux_2_17_aarch64.whl (7.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.59-py3-none-macosx_11_0_arm64.whl (7.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.59-py3-none-macosx_10_15_x86_64.whl (8.1 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 4010e928e906f6be9eaa0d783eb97c81e63af66183b6f2fe83f30fc0f43b2860
MD5 6a68d40fc068053e297c5946ff6cc8fc
BLAKE2b-256 18ba5e5f4f2541d5cf6f0a188eb02a12ab7d8fec6cc5d7e964b18a80a94a9b4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c30fd112b1810310101ed38e54f0ef7f8586fb113ae614aa9ef3d1e91768403c
MD5 718ca36052ae9dc6ad684d1ecf9299f0
BLAKE2b-256 bfb24ed43c15d5756a784f26dd34aa403bd2b52a3fc79831cdec13f5ea73a5ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2d49b3beae766ddccc65ebdaa11dc5a035ca5ea7fb4f26bfcff4a1d15647e6b7
MD5 edf89256cff9a1c527f2edbfe269ab2a
BLAKE2b-256 30eb1c154d97542564712920a55cf20c1ab1fb01a8c37141191a468ae622bae6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 72e5c16a13643fbecaa914d788af43e6e9389ebfe204f48b87d5c8d5f8e4c297
MD5 4bd193061156bf65ef317cb5f03ae954
BLAKE2b-256 315256579cca44a7952d1ec45f86089ee8af3d5194ad4863e61af20982191045

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c627b68049ada15af152e78b45fb38bdbc63eb705d0d2447c19ae5866ac60d4e
MD5 813603b34bff490e08dc145a5eba8295
BLAKE2b-256 2b5be7a68bc1ffac64e0cffe34dce7176c3a2bd3f9219dcd7b2eb90ea09e9b4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 8ecef57568bf1b33aaad4e1353cf92a29792934cba46a17b9f2b04d77396068b
MD5 ca338c5a49d0ab324e5fd0dd319ef4e6
BLAKE2b-256 a6796ca3bb62261d238a6dae9120896f330256f270969f39b299ddd5f6ca70fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 f7acd1918c25e500d115dfe1876f389ce2345ea5e990f66db23ef4f1995fa392
MD5 12e0f364346ec01cfff0e673f53e33ec
BLAKE2b-256 da2b49f26ef32a1e7abac90234f4ecd858acb58dbbb7f80b770888a21937f362

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 9aca89cc391cb42414f9df990faac51564f9354cafc7baaa7667c95211ffbbfc
MD5 25addd38e1d876b290713f610ec90a4b
BLAKE2b-256 bacced80bc140de21d7330d2f39931bc6a86e1c2c753d1d0ace817be4558cade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e72f53f6e025125a14f33454bfffa88d91f667748efe4f8d803997f1ccf1fc9
MD5 3e19a18c4634f011a35fa4269bcc15ea
BLAKE2b-256 d8eff697622d9363d0dd60988c93f83a1a0732e39b0ee0755fa55e3e970e6e2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.59-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0d884364c4753e1f090b1699a114c743777ca1ca70dc0240a86e62244d676508
MD5 b8af8c10fe5631e480a46c5cd38ffb26
BLAKE2b-256 ce0fec8230e914d6593e7406f5e70773ecdbf6456ef31e10d4b701bc27a7a817

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