self-setup

self-setup is a skill for Claude Code, Codex from citedy/adclaw. It costs 24 tokens per session (1,266 once invoked), scanned C, original, Apache-2.0.

A conversation-based setup tool for configuring language-model providers and choosing which model is active. It can work with built-in providers and custom providers.

In plain words
What is it for?
Use it to add provider credentials, list available models, switch the active model, or configure a custom provider.
Why use it?
It removes the need to edit configuration files or run separate commands when adding an API key or changing models.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add provider credentials, list available models, switch the active model, or configure a custom provider.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/citedy/adclaw/self-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add citedy/adclaw --skill self-setup
Clone the repo
git clone --depth 1 https://github.com/citedy/adclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/citedy/adclaw/self-setup/github.svg)](https://agentmods.dev/skills/citedy/adclaw/self-setup)
Your own site
<a href="https://agentmods.dev/skills/citedy/adclaw/self-setup"><img src="https://agentmods.dev/badge/skills/citedy/adclaw/self-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/citedy/adclaw/self-setup"><img src="https://agentmods.dev/badge/skills/citedy/adclaw/self-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,266 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01266
Opus 5 $0.00012 $0.00633
Sonnet 5 $0.00005 $0.00253
Haiku 4.5 $0.00002 $0.00127

Measured 6d ago against content hash 128338a8bbd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

self-setup scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s http://localhost:8088/api/models | python3 -m json.tool

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

All commands use `curl` via your shell tool. Base URL: `http://localhost:8088/api`
src/adclaw/agents/skills/self-setup/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Self-Setup — Provider & Model Configuration

This skill lets you configure LLM providers and models through conversation. You have access to your own management API at http://localhost:8088/api/.


When to Use

  • User asks to add, change, or configure an LLM provider
  • User asks to switch models
  • User provides an API key for a provider
  • User asks "what models are available?"
  • User says something like "use GPT-5" or "switch to Claude"

API Reference

All commands use curl via your shell tool. Base URL: http://localhost:8088/api

List All Providers

curl -s http://localhost:8088/api/models | python3 -m json.tool

Get Active Model

curl -s http://localhost:8088/api/models/active | python3 -m json.tool

Set Active Model

curl -s -X PUT http://localhost:8088/api/models/active \
  -H "Content-Type: application/json" \
  -d '{"provider_id": "PROVIDER_ID", "model": "MODEL_ID"}'

Configure Provider API Key

curl -s -X PUT http://localhost:8088/api/models/PROVIDER_ID/config \
  -H "Content-Type: application/json" \
  -d '{"api_key": "USER_API_KEY"}'

Add Custom Provider

For providers not in the built-in list (Together AI, Groq, Fireworks, DeepInfra, etc.):

curl -s -X POST http://localhost:8088/api/models/custom-providers \
  -H "Content-Type: application/json" \
  -d '{
    "id": "provider-id",
    "name": "Provider Name",
    "default_base_url": "https://api.example.com/v1",
    "api_key_prefix": "sk-",
    "models": [
      {"id": "model-id", "name": "Model Display Name"}
    ]
  }'

Test Provider Connection

curl -s -X POST http://localhost:8088/api/models/PROVIDER_ID/test \
  -H "Content-Type: application/json" \
  -d '{"api_key": "OPTIONAL_KEY", "base_url": "OPTIONAL_URL"}'

Delete Custom Provider

curl -s -X DELETE http://localhost:8088/api/models/PROVIDER_ID

Add Model to Existing Provider

curl -s -X POST http://localhost:8088/api/models/PROVIDER_ID/models \
  -H "Content-Type: application/json" \
  -d '{"id": "model-id", "name": "Model Name"}'

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 168 lines · 24 tokens per session scan C 128338a8bbd6

Subscribe to this mod's changes

self-setup is a skill published in the GitHub repository citedy/adclaw (36 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 1,266 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.