Skip to content
Back to skills

Splice

BSecurity

Operate, inspect, configure, and troubleshoot a Splice gateway installation (`splice` CLI, `splice.toml`, `keys.toml`, and loopback control plane `/api/*`). Make sure to use this skill whenever checking Splice status or health (`splice status`, `splice doctor`), checking provider/account quota availability (`splice accounts --available`, `splice usage`), inspecting logs, wire traffic, or traces (`splice logs`, `splice wire`, `splice trace`), adding providers or API keys, running `splice setup...

  • 20 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentstypescriptgokotlinshellbashdebuggingapisecurity

Works with

  • claude code
  • claude desktop
  • terminal
  • cli
  • api
  • mcp

Security analysis

B84/100
  • mediumUses curl or wget to download content
  • criticalSends environment variables or credentials to an external URL

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

Scanned December 3, 2026

npx -y skills add torad-labs/splice --skill splice --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Splice?

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

Security grade badge for Splice
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/torad-labs-splice-splice/badge)](https://www.skillsdirectory.com/skills/torad-labs-splice-splice)

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: splice
description: >-
  Operate, inspect, configure, and troubleshoot a Splice gateway installation
  (`splice` CLI, `splice.toml`, `keys.toml`, and loopback control plane `/api/*`).
  Make sure to use this skill whenever checking Splice status or health
  (`splice status`, `splice doctor`), checking provider/account quota availability
  (`splice accounts --available`, `splice usage`), inspecting logs, wire traffic,
  or traces (`splice logs`, `splice wire`, `splice trace`), adding providers or
  API keys, running `splice setup [--update]`, putting `claude` on the
  door, editing `splice.toml` or runtime knobs, restarting the daemon, or
  operating Team Server Mode — even if the user only asks why a turn failed, which
  models have quota, or how to configure Splice. For multi-agent peer messaging
  and session lifecycle use `splice-peer`; for authoring Splice Mods and Modes use
  `splice-mods`; for Claude Code Desktop Policy use `splice-desktop-policy`.
---
<!-- splice-managed: splice-plugin -->

# Operating, Inspecting, and Troubleshooting Splice

Splice runs a single Kotlin JVM daemon (`spliced`) between Claude Code (or Claude Desktop) and your configured model providers (ChatGPT/Codex, Claude, Grok, Kimi, Muse, DeepSeek, OpenRouter, local runtimes, or OpenAI-compatible APIs).

Detailed CLI reference, control-plane `curl` recipes, and troubleshooting table: [references/cli-and-api.md](references/cli-and-api.md).

## Splice Skill Router

Splice ships four focused skills. Load the specialist skill when the task crosses into its domain so you get exact contracts without guessing:

| Task | Skill |
| --- | --- |
| Gateway ops, CLI, `splice.toml`, `/api/*`, providers, accounts/quotas, logs, wire/traces, restarts, Team Server Mode | **`splice`** (this skill) |
| Multi-agent peer messaging (`splice-peers` MCP, `splice peer`), launching/inspecting/stopping/resuming worker seats (`splice launch claude`, `splice session`) | **`splice-peer`** |
| Authoring or debugging TypeScript Mods v2, External JAR Modes (`[[mods.jar]]`), MCP Apps (`ui://`), or request-lifecycle-only hooks | **`splice-mods`** |
| Configuring or troubleshooting Claude Code Desktop Policy (`Settings -> Claude Code Desktop Policy`), `/etc/claude-code/managed-settings.json`, `processWrapper`, `code_window`, or `agy` ACP bridge | **`splice-desktop-policy`** |

---

## 1. Mental Model & Key Paths

- **One JVM daemon (`spliced`):** Binds loopback `127.0.0.1:3096` (`[daemon] control_port`) for the control API (`/api/*`), web console (`/`), and unified gateway door (`/door/v1/*`, `/desktop/v1/*`). Legacy per-head listeners bind their configured loopback ports (starting at `3099`).
- **One launcher (`splice-launch`):** Installed commands (`splice`, `claude-splice`, and any old command an earlier release linked, in `~/.local/bin/`) symlink to `~/.local/share/splice/splice-launch`, which cold-starts `spliced` if needed and requests an exec recipe from `/launch/<head>`.
- **No per-head `/mgmt` routes:** Heads serve only `/health`, `/v1/models`, `/wire`, `/v1/messages`, and `/v1/messages/count_tokens`. All inspection and management lives on `127.0.0.1:3096/api/*`.

| Location | Purpose |
| --- | --- |
| `~/.config/splice/splice.toml` | Topology: providers, heads, modes, capabilities, projects, server, daemon settings |
| `~/.config/splice/keys.toml` | Stored API keys (0600, re-read on every request — no restart needed) |
| `~/.config/splice/auth/` | Subscription OAuth tokens (0600) |
| `~/.splice/state/` | `mgmt-key`, `desktop-key`, `terminal-key`, runtime `config.json`, `desktop-policy-overrides.json`, traces, sessions, mods state (pre-0.4 installs may keep `~/.claude-codex/state`; override via `[daemon] state_dir` or `SPLICE_STATE_DIR`) |
| `~/.splice/logs/` | `daemon.log` (rotated at 64 MiB), `daemon-boot.log`, and `mods/<name>.log` |

---

## 2. Launching Sessions, Providers & Availability

### Where `claude` runs

- **Plain `claude` on the door (recommended):** Run `splice claude door [--model <selector>]` so plain `claude` starts in gateway mode through `/door` and `/model` lists every served model. Inspect with `splice claude` or `splice claude check [--json]`.
- **Side-by-side terminal launch:** `splice launch claude [--profile <name>] [args...]` (also linked as `claude-splice`) leaves your normal `claude` untouched.
- **Claude Desktop:** `splice desktop on [--model <id>] [--yes]` enables 3P gateway mode, or `splice launch claude-desktop` opens an isolated **Claude (Splice)** profile. See `splice-desktop-policy` for policy, `processWrapper`, and reload rules.
- **Old commands** an earlier release linked (`claudex`, `claude-grok`, `claude-openrouter`, etc.) are no longer how a provider is reached: type `claude` and pick the model with `/model`. `splice claude retire` clears them with a dated backup and `splice claude restore` brings one back.

### Providers, keys, sign-ins, and live quota availability

```bash
splice setup                                    # guided setup (`splice setup --update` after upgrade)
splice add <profile> [--yes]                    # profiles: codex, grok, kimi, muse, deepseek, openrouter, claude, local, api-key
splice add-model                                # interactive catalog model picker
splice models [provider] [--all]                # compare live endpoint roster vs declared rows
splice login [<head> [--label <name>]]          # bare opens Console Accounts; head starts OAuth/API-key sign-in
splice key set <ENV_NAME> --stdin < key.txt     # store API key in keys.toml (applies immediately, no restart)
splice key list                                 # list stored key names (never prints values)
splice accounts [--available] [--json]          # live availability of logged-in providers and ready models
```

Check `splice accounts --available` before starting work on a specific model so you confirm which providers have live quota rather than held or exhausted logins.

---

## 3. Everyday Inspection & Diagnostics

Start with `splice doctor` whenever something looks wrong — every failing check prints its exact fix command.

```bash
splice status                                   # daemon, heads, ports, accounts, modes, capabilities
splice doctor [--live]                          # full checkup (--live probes local runtimes)
splice doctor --json [--with-logs] [--out FILE] # redacted machine-readable support report
splice check-config [--fix]                     # validate splice.toml boot findings without starting daemon
splice accounts [--available] [--json]          # live provider/account availability and ready models
splice usage --json                             # per-command logins and 5h/7d plan quota windows
splice sessions [--json | relaunch]             # list live/stale/gone sessions, or relaunch stranded ones
splice perf [--window 1h|24h|7d]                # latency, failure rates, cache hit ratio, concurrency
splice logs [--provider <key>] [--tail 50] [-f]     # inspect daemon.log
splice wire <head> [--last 5] [--json]          # inspect in-memory upstream request ring (requires wireTap)
splice trace <head> [--last 20] [--json]        # inspect on-disk request/response traces
splice console [--no-browser]                   # open web console (or drive an open tab via subcommands)
splice restart [--wait | --now]                 # graceful handover restart (--wait waits for compactions)
splice upgrade [--check | --to vX.Y.Z | --rollback]
splice plugin [install|uninstall|status|show]   # offline management of this bundled skill suite
```

### Querying the control plane `/api/*` directly

Health requires no auth:

```bash
curl -fsS http://127.0.0.1:3096/health
```

Authenticated `/api/*` reads use the loopback management key (`~/.splice/state/mgmt-key`). **Never print or echo the key to stdout, logs, or transcripts**:

```bash
SPLICE_STATE="${SPLICE_STATE_DIR:-$HOME/.splice/state}"
curl -fsS -H "Authorization: Bearer $(cat "$SPLICE_STATE/mgmt-key")" \
  http://127.0.0.1:3096/api/status
```

Key endpoints: `/api/status`, `/api/heads`, `/api/config`, `/api/accounts`, `/api/usage`, `/api/auth`, `/api/sessions` (`?kind=all`), `/api/modes`, `/api/mods`, `/api/compact`, `/api/logs`, `/api/logs/<head>?tail=50`, `/api/doctor`, `/api/desktop`, `/api/desktop/policy`, `/api/perf/summary`, `/api/models`.

---

## 4. Config Layering & Restart Rules

### Serving knob precedence (lowest to highest)

1. Built-in defaults
2. `[defaults]` and `[daemon]` in `splice.toml`
3. `<state>/config.json` (best-effort persistence of runtime `PATCH /api/config`)
4. Daemon environment variables
5. Runtime `PATCH /api/config` (global in-memory layer until restart)
6. `[heads.<key>.overrides]` in `splice.toml` (**most specific** — beats global runtime PATCH; update per-head overrides with `PATCH /api/config?head=<key>`)

### Live vs `splice restart`

- **Ask the machine instead of guessing:** In `GET /api/config`, every knob reports `"disposition": "live"` or `"restart"`, and `PATCH /api/config` returns `"restart_required": [...]` for keys waiting on a restart.
- **Applies live without restart:** `keys.toml` edits (`splice key set`), context-window keys (`context_window`, `extra_windows`, `window_rules`, `default_context_window`) in `splice.toml`, `PUT /api/modes/<name>`, daily budgets (`budgets.json`), and `"disposition": "live"` knobs.
- **Needs `splice restart`:** Most `splice.toml` edits (adding/removing heads or providers, quirks like `code_mode`, `[[mods.jar]]` pins, `[daemon]` ports). A single-head restart (`POST /api/heads/<head>/restart`) does **not** reload `splice.toml`.
- **Standing system prompts** are topology layers (not knobs), applied in order: `[heads.<key>]` -> `[projects."<root>"]` -> `[projects."<root>".heads.<key>]`.

---

## 5. Team Server Mode Basics

When Splice runs in Team Server Mode (`[server]` in `splice.toml`), one gateway serves multiple teammates over personal team keys with per-user usage tracking, optional hourly usage export (`splice server usage export`), and zero-cut handover restarts (`splice restart` under systemd socket activation drains active streams cleanly):

- **Server administration:** Use `splice server ...` on the server host (management key required for admin/mod writes; personal team keys cannot install mods or change daemon config).
- **Client connections:** Teammates connect with `splice remote add|list|refresh|set|remove` and `splice login <server> [--key-stdin]`.
- **LAN sharing:** `splice share [status|on|off]` manages local-network sharing when enabled.

---

## 6. Operational & Security Rules

1. **Never print secrets.** Never echo `mgmt-key`, `desktop-key`, `terminal-key`, `turn-auth-header`, `keys.toml`, or `auth/*.json` values into stdout, logs, or replies.
2. **Validate before restarting.** Run `splice check-config` after editing `splice.toml` — boot fails closed on any config finding.
3. **Prefer `splice key set` over shell exports.** Under Linux `systemd --user`, interactive shell exports never reach `spliced`; `keys.toml` works everywhere and applies immediately.
4. **Ignore the misleading `API Usage Billing` banner in Claude Code.** Claude Code prints that header for every non-Anthropic gateway provider; rely on `splice status`, `splice accounts --available`, and `splice usage --json` for actual routing and quota.

Files in this skill

  • SKILL.md11.1 KB
  • references/cli-and-api.md12.3 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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