Local AI Advisor

From hardware to coding agent, one layer at a time

Choose your machine, what you’ll do and which tool you use. We pick the runtime, model and API that make the whole chain comfortable — and explain why.

Five connected parts of a local AI stack: hardware, runtime, model, local API, and AI tool

Hardware

Which Mac?
Chip
Memory
Mac mini M4 Pro 64 GB· 64 GB unified memory · 273 GB/s

Workload & tool

Use case
AI tool
Project size, agents, other apps
Coding style
Repository size
Repository size is a signal for retrieval and prompt-processing load — the whole repo never goes into the context.
How does the agent behave?
What else do you normally run while coding?
This memory is subtracted before the model is considered. Very important on 16–32 GB machines.

Override layers (optional)

Leave on Auto to let the engine choose.

Model
Quantization
Runtime
ComfortableMedium confidence

Comfortable for medium-scale agentic coding

Yes — this should be comfortable for agentic coding.

  1. Hardware

    Mac mini M4 Pro 64 GB

    64 GB unified memory

  2. Runtime

    LAA

    METAL backend · GGUF weights

  3. Model

    Recursive Flint (40B-A2.5B) — MXFP4

    20 GB weights · 32K context

  4. Local API

    OpenAI-compatible endpoint

    http://localhost

  5. AI tool

    OpenCode

    Configure a provider with @ai-sdk/openai-compatible and the local base URL.

We may earn a commission when you buy through links on this page. It never changes our ratings.

Set it up

Recursive Flint (40B-A2.5B) — MXFP4 on LAA, used from OpenCode. Replace placeholders like <model-name> with the name your runtime shows.

  1. 1

    Install LAA

    Our free Mac app. Download it from iownchatgpt.com/laa, open the disk image and drag LAA into your Applications folder.

  2. 2

    Download Recursive Flint (40B-A2.5B) in LAA

    Open LAA's models browser. It labels how well each model fits your Mac before you download it.

  3. 3

    Switch on LAA's local API

    Choose Power user mode and turn on the local OpenAI- and Anthropic-compatible API server. Use its port in place of <port> below.

  4. 4

    Add the provider to opencode.json

    {
      "provider": {
        "local": {
          "npm": "@ai-sdk/openai-compatible",
          "options": { "baseURL": "http://localhost:<port>/v1" },
          "models": { "<model-name>": {} }
        }
      }
    }

Why this stack?

Why?

  • Model fits with approximately 30 GB of memory headroom.
  • LAA supports hardware acceleration on this machine (Metal (Apple GPU)).
  • OpenCode can connect to LAA (officially supported).
  • Generation (65–90 tok/s) should be appropriate for agentic coding.
  • Ingesting a prompt of 18K tokens takes ≈20 s; prompt processing keeps up with agentic coding.
  • 32K working context is reasonable.
  • Good coding capability for agentic coding. Tool calling is reliable.

Why “Comfortable” rather than “Excellent”?

  • Workload suitability: Good coding capability for agentic coding. Tool calling is reliable.
  • Prompt processing: Ingesting the first prompt (18K tokens) takes ≈20 s; each of the ~25 follow-up agent steps takes ≈10 s (≈4 min per task).

How sure are we?

Medium confidence

Estimated from bandwidth and compute, calibrated against 2 verified benchmarks of other models on this same chip (measured with a different engine, so calibration is partial).

  • Calibrated with verified benchmarks of other models on this chip.
  • MoE performance varies more between runtimes.