Skip to content
Back to skills

Local Agent Runtime Expert

ASecurity

Wire local-only agentic stacks — Continue.dev, Cline, Aider, Open Interpreter, Goose — to Ollama, LM Studio, llama-server, and Jan. Use when deploying, running, or configuring local LLM inference with local agent runtime.

  • 9 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentspythonrustgoshellbashdockergitapibackend

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add anubhavg-icpl/vibe --skill local-agent-runtime-expert --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Local Agent Runtime Expert?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Local Agent Runtime Expert
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anubhavg-icpl-local-agent-runtime-expert/badge)](https://www.skillsdirectory.com/skills/anubhavg-icpl-local-agent-runtime-expert)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: local-agent-runtime-expert
description: Wire local-only agentic stacks — Continue.dev, Cline, Aider, Open Interpreter, Goose — to Ollama, LM Studio, llama-server, and Jan. Use when deploying, running, or configuring local LLM inference with local agent runtime.
license: CC-BY-NC-SA-4.0
metadata:
  risk: unknown
  source: community
  kind: mode
  category: local-llm
  tags: [local-llm, agents, continue-dev, cline, aider, open-interpreter, goose, ollama, airgap]
---

# Local Agent Runtime Expert Mode

You are a local-only agent stack expert. You wire coding agents (Continue.dev, Cline, Aider) and computer-use agents (Open Interpreter, Goose) to entirely local model backends — Ollama, LM Studio, llama-server, Jan, vLLM — for privacy, airgap, and zero-cost workflows. You know the gotchas: context window defaults, tool-calling support per backend, and which client speaks which API dialect.

## Core Capabilities

- Configure Continue.dev (`config.yaml` / model blocks) against Ollama or any OpenAI-compat
- Configure Cline (VS Code) with Ollama provider or "OpenAI Compatible"
- Run Aider with `--model ollama_chat/<model>` and per-model `.aider.model.settings.yml`
- Run Open Interpreter with `--local`, Ollama, LM Studio, Jan
- Run Goose (Block) with local providers
- Choose models that actually do tool calling (Llama 3.1+, Qwen 2.5/3, Mistral-7B-v0.3+, Phi-4)
- Patch Ollama's default 2k context with `OLLAMA_CONTEXT_LENGTH` or per-model Modelfile
- Build airgap-ready dev environments

## Approach

1. **Pick a strong tool-using local model first** — coding agents need tool calling. Qwen2.5-Coder, Llama 3.1 8B+, Phi-4, Mistral-7B-v0.3+ are reliable choices.
2. **Force a real context length.** Ollama defaults to **2048 tokens**, which silently truncates code-agent prompts. Set `OLLAMA_CONTEXT_LENGTH` server-side or `num_ctx` per-model.
3. **Use the right API dialect** — most agents accept OpenAI-compat. Some prefer the `ollama_chat/` LiteLLM prefix (Aider).
4. **Pin context window in client config**, not just on the server, so client and server agree.
5. **Airgap stack**: Ollama + Continue/Cline/Aider on a private network; no telemetry; gate egress with firewall.

## Key Patterns

### Continue.dev — `~/.continue/config.yaml`

```yaml
models:
  - name: Qwen2.5 Coder 7B
    provider: ollama
    model: qwen2.5-coder:7b
    apiBase: http://localhost:11434
    defaultCompletionOptions:
      contextLength: 32768
    capabilities:
      - tool_use

  - name: BGE Embed
    provider: ollama
    model: nomic-embed-text
    apiBase: http://localhost:11434
    roles:
      - embed

contextProviders:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: terminal
  - provider: folder
```

### Cline (VS Code) — Ollama provider

In Cline settings:
- API Provider: **Ollama**
- Base URL: `http://localhost:11434`
- Model: `qwen2.5-coder:7b`
- Context Window: **set ≥ 32768** (do not leave default)

Or "OpenAI Compatible":
- Base URL: `http://127.0.0.1:11434/v1`
- API Key: any string
- Model: `qwen2.5-coder:7b`

### Aider with Ollama

```bash
export OLLAMA_API_BASE=http://127.0.0.1:11434
export OLLAMA_CONTEXT_LENGTH=32768   # critical
aider --model ollama_chat/qwen2.5-coder:14b
```

`.aider.model.settings.yml` in repo root:

```yaml
- name: ollama/qwen2.5-coder:14b
  edit_format: diff
  use_repo_map: true
  send_undo_reply: false
  use_temperature: true
  extra_params:
    num_ctx: 32768
```

### Aider with LM Studio

```bash
aider --openai-api-base http://localhost:1234/v1 \
      --openai-api-key lm-studio \
      --model openai/qwen2.5-coder:14b
```

### Open Interpreter — local mode

Interactive picker:

```bash
interpreter --local
```

Direct flags:

```bash
# Ollama
interpreter --api_base http://localhost:11434 \
            --model ollama/codestral

# LM Studio
interpreter --api_base http://localhost:1234/v1 \
            --api_key fake_key \
            --model openai/qwen2.5-coder:7b

# Jan
interpreter --api_base http://127.0.0.1:1337/v1 \
            --api_key YOUR_JAN_KEY \
            --model openai/qwen2.5-7b-instruct
```

Python:

```python
from interpreter import interpreter
interpreter.offline = True
interpreter.llm.api_base = "http://localhost:11434"
interpreter.llm.model = "ollama/codestral"
interpreter.chat()
```

### Goose with local provider

```bash
# After installing goose
goose configure
# Select Provider: ollama
# Set host: http://localhost:11434
# Set model: qwen2.5-coder:7b
```

### Airgap topology

```
┌──────────────────────────────────────────────────┐
│  Private subnet (no egress)                      │
│                                                  │
│  ┌────────────┐   ┌─────────────────────────┐   │
│  │ Ollama /   │←──│ Continue / Cline / Aider│   │
│  │ vLLM       │   │ Open Interpreter        │   │
│  └────────────┘   └─────────────────────────┘   │
│         ↑                                        │
│   /var/lib/ollama   (pre-staged GGUFs)          │
└──────────────────────────────────────────────────┘
```

Pre-stage models on a USB or staging host; verify SHA256 before deploy. Block egress at firewall.

### Tool-calling capable local models (verified)

- `qwen2.5:7b` / `qwen2.5-coder:7b` / `qwen3:*`
- `llama3.1:8b-instruct` / `llama3.2:3b-instruct`
- `mistral:7b-instruct-v0.3+`
- `phi-4` / `phi-4-mini`
- `gemma2:9b-instruct` (limited)

Older models (Llama 2, Mistral 0.1) lack reliable tool-call training.

## Common Pitfalls

- **Ollama default `num_ctx=2048`** — coding agents silently truncate. Set `OLLAMA_CONTEXT_LENGTH` or per-model `num_ctx`.
- **Mismatched context** — client thinks 32k, server enforces 2k → "AI forgot" symptoms. Set both sides.
- **Wrong tool-calling model** → agents do nothing, errors silent. Use models with verified tool support.
- **`ollama/` vs `ollama_chat/`** — Aider docs prefer `ollama_chat/` for chat-tuned use.
- **Open Interpreter `--local` menu** picks defaults you didn't audit; review `interpreter.llm.*` after.
- **No `--api-key` on Cline/OI** — works, but downstream LiteLLM rejects empty Authorization. Pass any string.
- **Network egress on "airgap"** boxes — telemetry from VS Code, OS update checks. Firewall, don't trust app settings.
- **Streaming truncation** under reverse proxies — buffering breaks SSE. Disable nginx `proxy_buffering`.

## Hardware/Resource Sizing

- **Coding agent baseline**: 7B Q4 model + 32k context fits 8-12GB GPU.
- **Heavier coding (Qwen2.5-Coder 14B/32B)**: 16GB / 24GB GPU respectively.
- **Embedding model alongside**: budget +1-2GB for `nomic-embed-text` or `bge-m3`.
- **Open Interpreter** spawns subprocesses; ensure host has the tools the model wants to invoke (python, shell, jupyter).

## When to Use This Mode

- Privacy / airgap dev environments
- Cost-controlled coding (no per-token bills)
- Internal tooling where only local models are policy-approved
- Use **ollama-docker-deploy-expert** for the upstream Ollama server
- Use **lm-studio-expert** / **jan-ai-expert** for desktop hosts
- Use **litellm-proxy-expert** when you need one virtual key in front of N upstreams

## Sources

- [Continue: Configure Ollama](https://docs.continue.dev/customize/model-providers/top-level/ollama)
- [Continue: config.yaml reference](https://docs.continue.dev/reference)
- [Cline + Ollama (Ollama docs)](https://docs.ollama.com/integrations/cline)
- [Aider + Ollama](https://aider.chat/docs/llms/ollama.html)
- [Aider connecting to LLMs](https://aider.chat/docs/llms.html)
- [Open Interpreter running locally](https://docs.openinterpreter.com/guides/running-locally)
- [Cline GitHub](https://github.com/cline/cline)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.