Skip to content
Back to skills

Netllm Connect Editor

ASecurity

Wire AI coding tools (Cursor, Claude Code, Codex, VS Code Copilot, Honcho, Hermes Agent) to a running netllm agent at http://127.0.0.1:11400/v1. Use when the user asks to connect Cursor to netllm, use local LLM in Claude Code or Codex, point an editor at the swarm router, or invokes /netllm-connect. Requires netllm serve running and a model name from ./netllm models.

  • 25 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
ai-agentsgoshellbashdockerapibackend

Works with

  • claude code
  • cursor
  • cli
  • api

Security analysis

A92/100
  • mediumUses curl or wget to download content

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add matthewdcage/llm-swarm-router --skill netllm-connect-editor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Netllm Connect Editor?

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

Security grade badge for Netllm Connect Editor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/matthewdcage-netllm-connect-editor-llm-swarm-router/badge)](https://www.skillsdirectory.com/skills/matthewdcage-netllm-connect-editor-llm-swarm-router)

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: netllm-connect-editor
description: |
  Wire AI coding tools (Cursor, Claude Code, Codex, VS Code Copilot, Honcho,
  Hermes Agent) to a running netllm agent at http://127.0.0.1:11400/v1. Use when
  the user asks to connect Cursor to netllm, use local LLM in Claude Code or Codex,
  point an editor at the swarm router, or invokes /netllm-connect. Requires
  netllm serve running and a model name from ./netllm models.
version: 1.0.0
license: MIT
compatibility:
  - cursor
  - codex
  - claude-code
  - copilot
allowed-tools:
  - Read
  - Shell
  - Grep
---

# netllm connect editor

## When to use this skill

- User wants Cursor, Claude Code, Codex, Honcho, or Hermes Agent to use local models via netllm
- After `/netllm-setup` or when agent is already running
- User invokes `/netllm-connect`

## Prerequisites

- netllm agent running: `curl -sf http://127.0.0.1:11400/health`
- Model ID from `./netllm models` (exact string required in most editors)

Load detailed per-editor steps from [references/editor-settings.md](references/editor-settings.md) when needed.

## Workflow

0. **Quick path** — when the user names a harness, run `./netllm connect <id>` (or
   `./netllm connect <id> --json` for agents). It checks agent health, prints
   copy-paste env wiring, optional Codex TOML or Hermes `config.yaml`, and suggests
   `./netllm sources toggle <id>`. Use `--toggle` only when the user wants
   registration in config.toml; never auto-edit editor configs.

1. **Confirm agent is up**
   ```bash
   curl -sf http://127.0.0.1:11400/health && echo ok
   ./netllm models
   curl -sf http://127.0.0.1:11400/netllm/v1/harnesses
   ```
   Pick a model ID from output; note it for the user. The last call 404s on
   an agent older than the harness-detection feature — that's fine, just
   fall back to step 3's static instructions unchanged.

2. **Ask which editor**, Cursor, Claude Code, Codex, VS Code Copilot, Honcho, or Hermes Agent. If user already named one, skip.

3. **Apply editor-specific config**, follow [references/editor-settings.md](references/editor-settings.md). Never auto-edit `settings.json` without explicit user consent; show copy-paste instructions instead.

   If step 1's `/netllm/v1/harnesses` call succeeded, tailor this step with
   the matching entry (match by id: `claude-code`, `codex`, `cursor`,
   `gemini-cli`, `honcho`, `hermes-agent`; Copilot has no registry entry, use the static
   flow):
   - `"detected": true, "enabled": false` (or no matching entry at all) —
     the CLI is on PATH but not registered as a source. After finishing
     the env wiring below, mention `./netllm sources toggle <id>` as an
     optional way to give this harness its own durable routing/policy —
     not required for basic connectivity.
   - `"detected": false` — surface that harness's `install_hint` as a
     copy-paste command. Never run it yourself; the user installs it, then
     re-runs this skill to pick up the change.
   - `"detected": true, "enabled": true` — already registered; nothing
     extra to say here, proceed straight to env wiring.

4. **Set shell env**, pick one API surface:

   OpenAI-compatible (Cursor, Codex, Copilot):
   ```bash
   export OPENAI_BASE_URL=http://127.0.0.1:11400/v1
   export OPENAI_API_KEY=netllm-local
   ```

   Native Anthropic Messages API (Claude Code):
   ```bash
   export ANTHROPIC_BASE_URL=http://127.0.0.1:11400
   export ANTHROPIC_API_KEY=netllm-local
   ```

   For LAN gateway, replace host with gateway IP (e.g. `http://192.168.1.10:11400`).

5. **Verify inference**
   ```bash
   ./netllm test --model <id>              # OpenAI path
   ./netllm test --api anthropic --model <id>  # Anthropic path
   ```

6. **Report**, editor, base URL, model name, verification result. If `model_not_found`, model string does not match backend, re-run `./netllm models`.

## Examples

**Goal:** Cursor on same machine as netllm

1. `./netllm models` → e.g. `llama3.2:latest`
2. Cursor Settings → Models → enable OpenAI-compatible override
3. Base URL: `http://127.0.0.1:11400/v1`, API key: `netllm-local`, model: `llama3.2:latest`
4. `./netllm test --model llama3.2:latest`

## Edge cases

| Situation | Action |
|-----------|--------|
| Agent not running | Run `netllm-setup` skill or `./netllm serve` |
| Empty model list | Start Ollama/oMLX; `./netllm discover`; restart serve |
| Dockerized Honcho | Use `http://host.docker.internal:11400/v1`: see [docs/honcho-integration.md](../../../docs/honcho-integration.md) |
| Hermes Agent | `provider: litellm` in `~/.hermes/config.yaml` (not env vars): `./netllm connect hermes-agent` — [docs/hermes-agent-integration.md](../../../docs/hermes-agent-integration.md) |
| Remote swarm gateway | Point client at gateway URL from `./netllm peers` |

## Do not

- Modify user editor settings files without explicit permission
- Use cloud API keys when routing through netllm: `netllm-local` is sufficient

Files in this skill

  • SKILL.md4.8 KB
  • references/editor-settings.md2.7 KB

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.