agentproto/ts/ap-models-auth
Claude Code and agent skill by agentproto/ts
- community
Checking that the SKILL.md file is still in the repository.
Manage models, billing profiles, and spend on the agentproto daemon — catalog_models for runnable routes, auth_profile_create/import/set_models for named credentials, harness presets, usage_rollup for spend estimates. Trigger when asked about models, costs, billing, auth profiles, OpenRouter routing, or how much a session spent.
Install
npx vskill@latest install agentproto/ts/ap-models-authSKILL.md
The same SKILL.md was published earlier as agentproto/ts/ap-models-auth.
ap-models-auth
When to use
- Before spawning: which models are actually runnable given the auth profiles on this host.
- A spawn is rejected or bills through the wrong wallet — check/curate profiles.
- "How much did we spend this week?" — rolling spend estimates.
Catalog: what is spawnable
Model identity is vendor/product with an optional @route for transport/billing — e.g. z-ai/glm-5.2@openrouter. The route is distinct from the product identity: the same product can exist on several routes with different cost/limits.
Auth profiles: named wallets
Profiles are named — spawn with access: { "profileRef": "openrouter-env" } to bill through one. A disabled profile drops every model it would serve to non-runnable, immediately.
Harness presets: pin harness → profile + model
A preset is what a fresh spawn uses when the caller pins neither profile nor model.
Spend: rolling estimates
basis is always local-estimate: aggregated from per-session snapshots the daemon writes at every turn-end — not the provider's actual bill. Models with no catalog price surface in unpricedTokens rather than being fabricated as $0.
CLI
Gotchas
usage_rollupis an estimate from local snapshots — it can diverge from the provider's bill (queued turns, retries, unpriced models). Say "estimate" when quoting numbers.- Model identity is
vendor/product[@route]—z-ai/glm-5.2andz-ai/glm-5.2@openrouterare different routes with potentially different prices. - Auth profile credentials are never returned — only
keyStatus, fingerprints, and last-4 digits. If a spawn fails auth, re-checkkeyStatusonauth_profile_listrather than trying to echo the secret. harness_preset_createrejects aprofileRefthat does not exist or is disabled, and adefaultModelthe profile's allowlist cannot service.profileRefanddefaultModelare optional. NoprofileRef= the harness bills on its own login (claude-code-cloud, orclaude-code/codexlogged in): a spawn through that default passes noaccess. NodefaultModel= the vendor default (no model sent). Acloudspawn (claude-code-cloud) never resolves a profile or a default preset: it always runs on the daemon user's claude.ai login (a setup-token cannot create cloud sessions), while an explicitmodeldoes apply. No manifest signal says a harness has no own login, so a profile-less preset is accepted for every harness.- Curated allowlists (
mode: "allow") drift as catalogs change —auth_profile_refresh_modelsre-syncs against the current catalog on demand, nothing does it automatically.
Pointers
- agentproto — daemon overview.
- ap-adapters — what each harness can reach; where its creds live.
- ap-spawn-agent — attach
access.profileRef/modelat spawn time. - cheap-coders — routing to economic models through this machinery.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/skill-pack-agentproto/src/skills/ap-models-auth/SKILL.md
Popularity
- Repository stars
- 10
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agentproto/ts/ap-models-auth)