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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

mothx_installer-1.1.73-py3-none-musllinux_1_2_x86_64.whl (8.8 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mothx_installer-1.1.73-py3-none-musllinux_1_2_aarch64.whl (8.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mothx_installer-1.1.73-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.73-py3-none-manylinux_2_17_s390x.whl (8.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

mothx_installer-1.1.73-py3-none-manylinux_2_17_ppc64le.whl (8.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mothx_installer-1.1.73-py3-none-macosx_11_0_arm64.whl (8.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

mothx_installer-1.1.73-py3-none-macosx_10_15_x86_64.whl (9.0 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 2211924951a60e9da2d0a22bf062373197d02b9f93b7d827fdae5cc383d05593
MD5 00cef2295e5e78b46e513ed071c4d652
BLAKE2b-256 ac02e71839fca53cc5ad37433227f1c68a3cefd1776c49e11a6c882bc5576b2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 79067304bbe6a45e776ee607c42ea1749c979a0ea817db66838c0a9f271fccd6
MD5 0bd7c9b672adef551be56a71b7b9cbb7
BLAKE2b-256 64675ce8d50e0e8647873c81e9a8a857c204638c8737b285f3377379b248cb92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5fd9f606cdf04081c49f9b9ea7e938bbc611c7525a45deb0f91660657e7d167c
MD5 971b4ec5aa192ee4e2e8d1226a96985a
BLAKE2b-256 ded4f03d0372561e50c4cae37643a7723d7ed8b798ac2f794a1ec2f9d1baa288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cac4c90808e7dfef287593f1625465960ba02a7ae55cb8659e51d89a49f3030f
MD5 004c1c11062266a78aa5b3b4b2f76c82
BLAKE2b-256 7c7b7a22dc93265cdc548bf1c571038dc17b0f7d28a79cbb44ba6593f7034371

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ba2f38402f3d56a796dec69035f08e9fbc8ff6aef450b8cb2b7299ec68af3ea6
MD5 7afd98ba01099b8b97dcffcf8d4d9542
BLAKE2b-256 52ea42065c280ba986fc3b5c8cf47bfbbc1994821fa705083616fba80eda1519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-manylinux_2_17_s390x.whl
Algorithm Hash digest
SHA256 1ed7ce70e3c6c7631cbe8c467b6c56922605be8bc21fba4fe9cea67a322cc05c
MD5 834eeec09dfd4dc43e98d2fdc1bcf81c
BLAKE2b-256 843ad39c73bd056ec4eb5106c5eac197ba68a0af8007977c09db3fe56dcc44f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-manylinux_2_17_ppc64le.whl
Algorithm Hash digest
SHA256 8bc427ed3276ccc43382b3b80286dec1310fcc3c7b51e7df2c13e068cd8b38b9
MD5 b3313d9dcbb25e0c8caeb035f58770b8
BLAKE2b-256 de9d858eddc50ef8c08db181cd5a03212ae688fcc808852e34bbf05111b809e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f1961714976570f109e3c0ef59c7ba526b304195900db12aac48c5062d043788
MD5 8baa5690ceba4390a87679dd33878834
BLAKE2b-256 82bdcb57580b48b5364bbd0b10d239547d31269f00398e41be1b97c528ef8f68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f706aad4fd73acedc3e8db5204fef5eaf4ba02c846b5c82df5f8a10c43b1c052
MD5 397f6ab418ee84c0ba137b56112ef264
BLAKE2b-256 8e8304ad407b139869aa6ee13516f22118d092a4d19bf360ec730051b065643e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mothx_installer-1.1.73-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d0e1f25712bc7c922e95f25059e5462da0c962d499156de2789ee46aeddf48f2
MD5 8bd6a844d9b6577c5eed25183be1b0f2
BLAKE2b-256 a76b3d28ae3b3c62ee3de9b4d87b4f961d5088ea0ed440b5edb820b7171bef83

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