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.17.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.17.0
File Size Uploaded Provenance Actions
mlx_agent-0.17.0.tar.gz 1.6 MB With provenance Details for mlx_agent-0.17.0.tar.gz

Built distribution (wheel)

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

Total release size: 3.4 MB

Release files / mlx_agent-0.17.0.tar.gz

Download URL mlx_agent-0.17.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
1808bf1f08c370c3886a8c712fa2c7062d8042b8e15088b546711ae0370527a7
BLAKE2b-256 checksum
How to use checksums
c1d45d29692fc7c15744fff76f48d05464da1a5dd122fdfcb1f79c7d09afbbcc
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 26, 2026.

Transparency log

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

Download URL mlx_agent-0.17.0-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a45c711a1a4589cd187d6af7de28012a15c9de3a996306d0e6e6e351b8cdc6f2
BLAKE2b-256 checksum
How to use checksums
c0e9032f2b175569773944e56196ee8db47565c627677fe13c3bdd7d77e55016
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 26, 2026.

Transparency log

Security for mlx-agent 0.17.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.17.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 26, 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