Skip to content
Back to skills

Ryu Local Model

ASecurity

Search, download, and serve a local GGUF model on a Ryu node via Core's models and engines REST surface. Covers catalog search and device-fit, installing a specific quantization, activating a model, and listing engines (the engine is derived from the model format). Use when a user wants to get a local model running on their node.

  • 45 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsnodeapi

Works with

  • cursor
  • api
  • mcp

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add amajorai/ryu --skill ryu-local-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ryu Local Model?

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

Security grade badge for Ryu Local Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/amajorai-ryu-local-model/badge)](https://www.skillsdirectory.com/skills/amajorai-ryu-local-model)

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: ryu-local-model
description: Search, download, and serve a local GGUF model on a Ryu node via Core's models and engines REST surface. Covers catalog search and device-fit, installing a specific quantization, activating a model, and listing engines (the engine is derived from the model format). Use when a user wants to get a local model running on their node.
---

# Local models on Ryu

This skill manages local models on a Ryu node. If Ryu is not running, do [[setup-ryu]] first. Over MCP the same actions are `ryu_search_models`, `ryu_get_active_model`, `ryu_set_active_model`, and `ryu_list_engines` from [[ryu-mcp]].

Base URL is the Core node, default `http://127.0.0.1:7980`. The catalog is Hugging Face GGUF by default. The engine is derived from the model format, so for GGUF you normally just pick a model and Core runs it on the matching engine.

## Search the catalog

`GET /api/models/catalog` with query params:

- `query` - free-text search.
- `format` - `gguf` (default), `safetensors`, or `mlx`.
- `sort` - `trending`, `downloads`, `likes`, or `recent`.
- `limit` - max results.
- `task` - Hugging Face pipeline tag (for example `text-generation`, `image-text-to-text`).
- `author` - filter by org.
- `installed_only` - `true` to show only installed models.
- `cursor` - pagination cursor for the next page.

```sh
curl -s "http://127.0.0.1:7980/api/models/catalog?query=llama&format=gguf&sort=trending&limit=10"
```

Each card carries `compatible`, `needsEngine`, params, context length, and tags so you can tell what will run on this node.

## Inspect quantizations and device-fit

```sh
curl -s "http://127.0.0.1:7980/api/models/catalog/detail?id=<repo_id>&format=gguf"
```

This returns each downloadable GGUF file with a fit verdict (`too_big`, `no_space`, `cpu`, `partial`, `ok`, `great`, or `unknown`), human size, and quant label, computed against the node's detected hardware and free disk. Prefer `ok` or `great` for a responsive local experience. A `too_big` file does not fit memory and a `no_space` file does not fit free disk; neither can be installed.

## Install a model file

Download one specific GGUF quantization through Core's verified downloader:

```sh
curl -s -X POST http://127.0.0.1:7980/api/models/catalog/install \
  -H 'content-type: application/json' \
  -d '{"id":"<repo_id>","file":"<filename.gguf>","format":"gguf"}'
```

Core refuses a `too_big` or `no_space` file with HTTP 422 before it downloads anything. The body carries `code` (`model_too_large` when the file does not fit memory, `insufficient_disk` when it does not fit free disk, with Ryu keeping a 2 GB reserve), `verdict`, `sizeBytes`, and a plain-language `message` with the numbers. Do not retry the same file. Pick a smaller quant whose verdict is `ok`, `great`, `partial` or `cpu`, or free disk space and try again.

To remove a downloaded file:

```sh
curl -s -X POST http://127.0.0.1:7980/api/models/catalog/uninstall \
  -H 'content-type: application/json' \
  -d '{"id":"<repo_id>","file":"<filename.gguf>"}'
```

## Activate (serve) a model

`POST /api/models/active` switches the model the local chat stack serves. `id` is the local stem or HF repo id of an already-installed model; pass `engine` only to override the format-derived engine.

```sh
curl -s -X POST http://127.0.0.1:7980/api/models/active \
  -H 'content-type: application/json' \
  -d '{"id":"<repo_id_or_stem>"}'
```

Read the current selection:

```sh
curl -s http://127.0.0.1:7980/api/models/active
```

## Engines

- `GET /api/engines` - list runnable engines on this node.
- `GET /api/engine/active` - the active engine.
- `GET /api/models/engines` - engine availability keyed for the catalog.

Because the engine is derived from the model format, you rarely set it by hand: GGUF runs on the llama.cpp-class engine, while safetensors and MLX map to their own engines and may show `compatible: false` with a `needsEngine` label if that engine is not runnable here.

## End-to-end

1. `GET /api/models/catalog?query=...&format=gguf` to find a model.
2. `GET /api/models/catalog/detail?id=...&format=gguf` to pick a quant that fits.
3. `POST /api/models/catalog/install` with that file.
4. `POST /api/models/active` with the model id.
5. Confirm with `GET /api/models/active`.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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