TokenAssemble

Local AI workflow

Local coding assistant

A private Copilot alternative: an editor assistant pointed at a model your own machine serves. The stack: Continue, Aider, Cline with Ollama serving 3 recommended local models — hardware readiness graded by the same engine as the feasibility checker.

Tools in this category most commonly run against cloud APIs; a local model served by the runtime below is the private, offline option this page sizes.

The stack

Set it up and check it

Not run here: these GPU/model steps were not executed in this environment. The commands and checks are documented from official sources; the website build and pure-logic tests were run separately.

  1. 1. Install Ollama

    Download the desktop app for macOS/Windows, or use the official Linux install script. The app and the CLI share the same local server.

    Command
    curl -fsSL https://ollama.com/install.sh | sh

    Source: Ollama quickstart

  2. 2. Pull a model and match the quant

    The example uses the official `qwen3:14b` registry tag. Whether it fits depends on the exact hardware, artifact quant, and context; do not infer fit from parameter count. Confirm its tag details on the library page because our engine may have graded a different artifact.

    Command
    ollama pull qwen3:14b

    If the computed verdict says Q4_K_M and the registry default is a different quant, the install does not automatically reproduce that verdict. Check the tag.

    Source: Ollama Qwen3 library page

  3. 3. Set context intentionally, then verify it

    Context memory grows with the token budget. Set it in the app or on the server process, and confirm the allocated CONTEXT in `ollama ps`. The shell command below starts a CLI server; if the desktop app or service is already running, stop/configure that server instead of launching a second one.

    Command
    OLLAMA_CONTEXT_LENGTH=32768 ollama serve
    # in another terminal:
    ollama run qwen3:14b
    # in a third terminal, while the model is loaded:
    ollama ps

    On macOS, Ollama's FAQ documents setting environment variables for the desktop app with launchctl; Linux services and Windows use their own environment setup. A variable on this shell does not change an already-running server.

    Source: Ollama context-length docs

  4. 4. Install Aider

    Aider is a terminal coding assistant. Use its official installer, then point it at the local Ollama server.

    Command
    curl -LsSf https://aider.chat/install.sh | sh

    Source: Aider installation docs

  5. 5. Connect Aider to Ollama

    Aider's Ollama docs set OLLAMA_API_BASE and use the `ollama_chat/` model prefix. Its example starts Ollama at 8K, while Ollama's current docs recommend at least 64K for coding/agent tasks that need large context. For this small validation task, the setup requests 32K; the model's 40K registry limit and available memory still apply.

    Command
    export OLLAMA_API_BASE=http://127.0.0.1:11434
    aider --model ollama_chat/qwen3:14b

    Aider documents dynamic context sizing by default (request plus an 8K reply allowance), while the Ollama server and model still impose their own limits. The official `qwen3:14b` tag lists 40K context, so it cannot meet Ollama's 64K guidance; this example only demonstrates a small, bounded task. Check `ollama ps` and the model's registry limit.

    Source: Aider Ollama docs

A small check that catches fake success

In a disposable git repository, ask: “Add a failing test for a slugify function, run it to confirm the failure, then implement the smallest change that makes it pass. Do not modify the test. Show me the diff and the test output.”

  • The test fails before the implementation step (the agent shows the failure, not just a claim).
  • `npm test` (or the project's test command) exits 0 after the change.
  • The test file is unchanged in `git diff` — the agent did not weaken the assertion.
  • Only the intended source file changed; unrelated formatting churn is a warning sign.
  • The final answer includes the actual command output, not a generic “done”.

Context is a task setting, not a magic number

ContextUseCaveat
8KSingle-file questions and short diffs.Not enough for a repository map plus a multi-file change. Do not treat it as a universal default.
32KSmall multi-file edits and an agent that needs the surrounding code.The example's `qwen3:14b` registry tag lists 40K context, so 64K is unavailable for this tag even if the card has memory.
64K+Long coding or agent loops, when the model and memory support it.Ollama's docs recommend at least 64K for these tasks; this is conditional, not a claim that every task needs 64K.

Hardware readiness

Each cell is the engine's verdict for the best clean quant of that model on Ollama at 16K context — the same math as the checker, tiers not numbers. This is the template's check context, not a claim that 8K or 16K is sufficient for every coding or agent task; the setup section above explains the conditional options.

HardwareQwen3-14BQwen2.5-32B-InstructDeepSeek-R1-Distill-Qwen-14B
NVIDIA GeForce RTX 4090Fits · B · Q8_0interactiveTight · C · Q4_K_Musable · offloadbetaFits · B · Q8_0interactive
NVIDIA GeForce RTX 5090Fits · A · Q8_0interactiveFits · B · Q4_K_MinteractiveFits · A · Q8_0interactive
NVIDIA GeForce RTX 4080Fits · B · Q4_K_MinteractiveTight · C · Q4_K_Musable · offloadbetaFits · B · Q4_K_Minteractive
NVIDIA GeForce RTX 4070Tight · C · Q4_K_Minteractive · offloadbetaTight · C · Q4_K_Musable · offloadbetaTight · C · Q4_K_Minteractive · offloadbeta
NVIDIA GeForce RTX 4060Tight · C · Q4_K_Musable · offloadbetaTight · C · Q4_K_Mpainful · offloadbetaTight · C · Q4_K_Musable · offloadbeta
NVIDIA GeForce RTX 3090Fits · B · Q8_0interactiveTight · C · Q4_K_Musable · offloadbetaFits · B · Q8_0interactive
NVIDIA GeForce RTX 3060 12 GBTight · C · Q4_K_Musable · offloadbetaTight · C · Q4_K_Mpainful · offloadbetaTight · C · Q4_K_Musable · offloadbeta
AMD Radeon RX 7900 XTXFits · B · Q8_0interactivebetaTight · C · Q4_K_Musable · offloadbetaFits · B · Q8_0interactivebeta
Intel Arc B580Tight · C · Q4_K_Musable · offloadbetaTight · C · Q4_K_Mpainful · offloadbetaTight · C · Q4_K_Musable · offloadbeta
NVIDIA DGX SparkFits · A · Q8_0usablebetaFits · A · Q8_0painfulbetaFits · A · Q8_0usablebeta
Mac mini M4 24GBFits · B · Q6_KpainfulWon't fitFits · B · Q5_K_Mpainful
Mac Studio M3 Ultra 96GBFits · A · Q8_0interactiveFits · A · Q8_0usableFits · A · Q8_0interactive
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBFits · A · Q8_0usablebetaFits · A · Q8_0painfulbetaFits · A · Q8_0usablebeta

Different hardware? Check your exact machine against any model in this stack.

Check your machine →Don't have the hardware? Build a stack for your budget →

Template picks are editorial; every verdict, grade and tier above comes from the engine over sourced data — how the math works.