Skip to main content

mlx-agent

Discover, run and manage local AI models on Apple Silicon.

Your coding agent can make the props too. Local 3D generation on Apple Silicon. A duck knight holding a croissant lance.

PyPI version PyPI weekly downloads Tests

Generate images, video, music, speech and 3D assets with local models. Manage model discovery, conversion and serving, then keep task inputs and results together through the CLI or MCP.

Get started

The core requires Python 3.11 or later and uses the standard library. Model execution needs a separately installed runtime; optional backends have their own dependencies.

git clone --depth 1 --branch main https://github.com/cavi-ai/mlx-agent.git
cd mlx-agent
python3 scripts/mlx-agent inspect-host --json
python3 scripts/mlx-agent discover --limit 3 --json

Review the candidates and follow Your first local model. To prepare compatible local weights and a runtime, see Intake and optional backends. Discovery does not download weights.

Generate a 3D mesh

Turn a PNG, JPEG or WebP image into a GLB with native MLX TripoSG, TRELLIS.2 or Pixal3D. Use compatible converted local weights and the installed mlx-3d backend. Optional backend installation uses Python 3.12. Choose a new .glb path in an existing output directory:

python3 scripts/mlx-agent convert mesh --path /absolute/local/mesh-model --image /absolute/input/object.png --out /absolute/output/object.glb --json

For example, ask a connected agent:

Turn this image into a GLB using my chosen local model. Show me the settings before starting, then show me the result.

For jobs that outlive the client, use durable tasks. They retain task inputs, status and output. See local inference for model-specific operations.

Connect your tools

Use the CLI directly, or register the current checkout's stdio server with an MCP client:

{
  "mcpServers": {
    "mlx-agent": {"command": "python3", "args": ["/absolute/path/to/mlx-agent/scripts/mlx-agent-mcp"]}
  }
}

See Installation and provider lifecycle for host-specific setup, updates and removal.

More with local models

See Evidence and sizing for model checks and the security model for confirmation, network and recovery boundaries.

Full host and skill reference

Provider support

First-class adapters are included for each provider below. The universal installer supports both user and project scopes.

Provider Package Invoke
Claude Code Native plugin /mlx-scout
/mlx-adopt
/mlx-wire
/mlx-bench
/mlx-doctor
/mlx-watch
/mlx-fleet
/mlx-task
Codex CLI Native plugin $mlx-agent:mlx-scout
$mlx-agent:mlx-adopt
$mlx-agent:mlx-wire
$mlx-agent:mlx-bench
$mlx-agent:mlx-doctor
$mlx-agent:mlx-watch
$mlx-agent:mlx-fleet
$mlx-agent:mlx-task
Agy Native plugin mlx-scout skill
mlx-adopt skill
mlx-wire skill
mlx-bench skill
mlx-doctor skill
mlx-watch skill
mlx-fleet skill
mlx-task skill
OpenCode Native plugin /mlx-scout
/mlx-adopt
/mlx-wire
/mlx-bench
/mlx-doctor
/mlx-watch
/mlx-fleet
/mlx-task
OpenClaw Native skills /mlx-scout
/mlx-adopt
/mlx-wire
/mlx-bench
/mlx-doctor
/mlx-watch
/mlx-fleet
/mlx-task
Hermes Agent Native skills /mlx-scout
/mlx-adopt
/mlx-wire
/mlx-bench
/mlx-doctor
/mlx-watch
/mlx-fleet
/mlx-task
Gemini CLI Native extension mlx-scout skill
mlx-adopt skill
mlx-wire skill
mlx-bench skill
mlx-doctor skill
mlx-watch skill
mlx-fleet skill
mlx-task skill
AgentSkills-compatible hosts Portable skills mlx-scout skill
mlx-adopt skill
mlx-wire skill
mlx-bench skill
mlx-doctor skill
mlx-watch skill
mlx-fleet skill
mlx-task skill

Documentation and contributing

Start with the documentation index, CLI reference, runtimes, or troubleshooting. See Contributing for local checks and Development for adapters and documentation builds.

Versioned documentation comes from docs/mlx-agent/source; the consumer contract describes release artifacts. Distributed under the MIT License.

Local models run on MLX and mlx-lm from Apple's ml-explore team.

Metadata

Release files for mlx-agent 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlx-agent 0.16.0
File Size Uploaded Provenance Actions
mlx_agent-0.16.0.tar.gz 1.6 MB With provenance Details for mlx_agent-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlx-agent 0.16.0
File Interpreter ABI Platform Actions
mlx_agent-0.16.0-py3-none-any.whl Python 3 none any Details for mlx_agent-0.16.0-py3-none-any.whl

Total release size: 3.3 MB

Release files / mlx_agent-0.16.0.tar.gz

Download URL mlx_agent-0.16.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
686ac353a1ec0c676ef99342f5e88db2022592a7fc3657c12f65a4724af9ecad
BLAKE2b-256 checksum
How to use checksums
a41d77c07fb1d249b050453491d2b590dc17b8c1417337a67fa1dfd14d6d7b99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / mlx_agent-0.16.0-py3-none-any.whl

Download URL mlx_agent-0.16.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3003c13615bebd9801f77bf54b0267854998c91336e3d090d87d8847643b5412
BLAKE2b-256 checksum
How to use checksums
3c78a67e16bd029b34e7f396b61d37abbd1eed680f8ff2e00c17ea59bbd3e039
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for mlx-agent 0.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mlx_agent-0.16.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page