Skip to content
LimiChan-2026Public

About

MewCode is a configurable, terminal-native AI coding agent for OpenAI-compatible and Anthropic models, with MCP tools, project trust controls, hooks, persistent sessions, and multi-agent workflows.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MewCode

A configurable terminal AI coding assistant built with Java.

简体中文 · Contributing · Security · Support

MewCode is an interactive command-line assistant for reading, searching, editing, and reasoning about code in the current working directory. It supports OpenAI-compatible Chat Completions APIs, Anthropic Messages APIs, MCP tools, project trust controls, hooks, persistent sessions, and multi-agent tasks.

Features

  • Interactive terminal UI and one-shot prompt mode
  • OpenAI, OpenAI-compatible, and Anthropic provider protocols
  • Built-in file, search, edit, write, and command-execution tools
  • MCP server integration, hooks, skills, session recovery, and context compaction
  • Project trust confirmation, permission modes, secret redaction, and Git worktree support
  • Background tasks and team collaboration

Requirements

  • JDK 21 or later
  • Network access to your chosen model provider
  • A model provider base_url, api_key, and model
  • Git (recommended; required for Git worktree features)

Check the installed Java version:

java -version

The major version should be 21 or newer.

Quick start

Clone the repository and enter it:

git clone https://github.com/LimiChan-2026/mewcode.git
cd mewcode

Create .mewcode/config.yaml in the project root. This file is intentionally ignored by Git so that your credentials stay local.

OpenAI or compatible API

providers:
  - name: MyOpenAI
    protocol: openai
    # Use the API root. MewCode appends /chat/completions automatically.
    base_url: https://api.openai.com/v1
    api_key: REPLACE_WITH_YOUR_API_KEY
    model: REPLACE_WITH_YOUR_MODEL
    thinking: false

For a third-party compatible service, replace only base_url, api_key, and model. openai-compat is also accepted as the protocol name.

Anthropic API

providers:
  - name: MyAnthropic
    protocol: anthropic
    # MewCode appends /messages automatically.
    base_url: https://api.anthropic.com/v1
    api_key: REPLACE_WITH_YOUR_ANTHROPIC_API_KEY
    model: REPLACE_WITH_YOUR_ANTHROPIC_MODEL
    thinking: false

name is a display name and can be changed freely. Use unique names when configuring more than one provider.

Never commit a real API key. Keep it only in your local .mewcode/config.yaml; do not put it in issues, logs, screenshots, or pull requests.

Build and start MewCode:

# Windows
.\gradlew.bat shadowJar
java -jar build/libs/mewcode.jar
# macOS / Linux
./gradlew shadowJar
java -jar build/libs/mewcode.jar

You can also run it without building a JAR:

# Windows: .\gradlew.bat run
# macOS / Linux: ./gradlew run

Usage

Start an interactive session:

java -jar build/libs/mewcode.jar

Run one prompt non-interactively:

java -jar build/libs/mewcode.jar -p "Explain the structure of this project"

Useful options:

java -jar build/libs/mewcode.jar --help
java -jar build/libs/mewcode.jar --config path/to/config.yaml
java -jar build/libs/mewcode.jar --trust-project

--trust-project enables the MCP, hook, and permission configuration declared by the current project after you have reviewed it. Configuration changes invalidate that trust and require confirmation again.

Configuration reference

Field Required Description
name Yes A non-empty provider display name.
protocol Yes openai, openai-compat, or anthropic.
base_url No Provider API root; protocol defaults are used when omitted.
api_key Yes Your local provider credential.
model Yes Exact model identifier supplied by the provider.
thinking No Requests Anthropic thinking mode when supported.
context_window No Overrides the provider's default context window.

Development

Run the test suite:

# Windows
.\gradlew.bat clean test --no-daemon

# macOS / Linux
./gradlew clean test --no-daemon

Test reports are written to build/reports/tests/test/index.html.

Please read CONTRIBUTING.md before opening a pull request. For vulnerability reports, follow SECURITY.md instead of opening a public issue.

License

MewCode is released under the MIT License.

About

MewCode is a configurable, terminal-native AI coding agent for OpenAI-compatible and Anthropic models, with MCP tools, project trust controls, hooks, persistent sessions, and multi-agent workflows.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages