Skip to main content

Coding Agent for Mac

Project description

mlx-code

Link

A lightweight, powerful Coding Agent for Mac. Built on top of Apple's MLX framework, mlx-code provides fast, local inference with built-in prompt caching and robust tool-calling capabilities.

It features a multi-provider local server, a terminal-based chat REPL, and a dedicated TUI for inspecting logs.

Features

  • Local MLX Inference: Powered by mlx-lm for optimized performance on Apple Silicon. Includes intelligent prompt caching.
  • Multi-Provider Compatibility: Seamlessly translates and handles requests formatted for Claude, Gemini, Codex, and standard OpenAI APIs.
  • Built-in REPL & Tools: Comes with pie, a fully-featured chat REPL with tool execution and reasoning token support.
  • TUI Log Viewer: Includes a Curses-based Terminal UI for filtering, inspecting, and tracking JSON logs in real-time.
  • Server Mode: Easily spin up a local server compatible with standard LLM tooling.

Quick Start

Install via pip and launch the agent immediately:

pip install mlx-code
mc

Command Line Interfaces

The package installs three primary command-line tools:

  • mc (Main Agent/Server): Runs the core agent and local API server (defaults to 127.0.0.1:8000).
  • me (REPL): Launches the interactive pie chat REPL.
  • md (Diagnostics/Logs): Opens the TUI viewer to navigate and filter JSON logs generated by the agent.

Options

You can customize the model, server, and behavior using command-line flags.

# Use Gemini CLI as the harness
mc --harness gemini 

# Use a custom local LLM backend
mc --model mlx-community/Qwen3.5-4B-OptiQ-4bit

# Use DeepSeek V4 Flash API
me --deepseek

# Run the server only on a custom port
mc --nocc --port 8080

(For a full list of mc server arguments, run mc --help)

Credits

  • main.py: Built on MLX and MLX LM by Apple.
  • pie.py: Adapted from pi by Mario Zechner (MIT License).

Licence

Apache License 2.0 — see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlx_code-0.0.3.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlx_code-0.0.3-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file mlx_code-0.0.3.tar.gz.

File metadata

  • Download URL: mlx_code-0.0.3.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for mlx_code-0.0.3.tar.gz
Algorithm Hash digest
SHA256 32d63077eda1ded41f79fdbc2274ed93295b19c2842de6823c8f313b0c71ea65
MD5 78c32ae1eb9bf3a9bb868f4307271154
BLAKE2b-256 1798590bc9d1c8036c07b15bf4295d21a6964913efb2ec719ae9b16bac73b067

See more details on using hashes here.

File details

Details for the file mlx_code-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mlx_code-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for mlx_code-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6572ace0ccaadae9305fc8cb9f07e4d818c12734fc38cb771e9b0a136abf5382
MD5 ce83c396c85953dbba9173f67cb31fb9
BLAKE2b-256 f60e7458c0e968d40a62632a26c0f4fe10b3776158dd6468f1d1e36e629d46ed

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