managing-agent

managing-agent is a skill for Claude Code from tkhq/turnkey-agent-skills. It costs 54 tokens per session (2,633 once invoked), scanned B, original, Apache-2.0.

Administrative tools for managing an already provisioned Turnkey agent, including its access, rules, keys, and supported blockchains. It requires root credentials.

In plain words
What is it for?
Use it to update spending limits and allowlists, create or rotate API keys, revoke access, delete users when confirmed, and add chains.
Why use it?
It handles ongoing maintenance after setup, such as diagnosing rejected transactions, changing spending rules, rotating keys, or removing access.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Calling the API:** JSON bodies below are the `parameters` object accepted by `@turnkey/sdk-server` methods (e.g. `create_api_keys` → `client.createApiKeys(....

Part of the turnkey plugin — 9 skills shipped together

Good fit Use it to update spending limits and allowlists, create or rotate API keys, revoke access, delete users when confirmed, and add chains.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tkhq/turnkey-agent-skills
agentmods
npx agentmods add skills/tkhq/turnkey-agent-skills/managing-agent

Made for: Claude Code.

Or install turnkey, the plugin that ships this one along with the rest of its 9 skills.

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 managing-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/tkhq/turnkey-agent-skills/managing-agent/github.svg)](https://agentmods.dev/skills/tkhq/turnkey-agent-skills/managing-agent)
Your own site
<a href="https://agentmods.dev/skills/tkhq/turnkey-agent-skills/managing-agent"><img src="https://agentmods.dev/badge/skills/tkhq/turnkey-agent-skills/managing-agent/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 managing-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/tkhq/turnkey-agent-skills/managing-agent"><img src="https://agentmods.dev/badge/skills/tkhq/turnkey-agent-skills/managing-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,633 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00054 $0.02633
Opus 5 $0.00027 $0.01316
Sonnet 5 $0.00011 $0.00527
Haiku 4.5 $0.00005 $0.00263

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

Security

Grade B, and why

managing-agent scanned grade B with 1 finding 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 10d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

compatibility: "Requires Turnkey root credentials (P-256 key pair). All recipes run with root/admin access."
skills/managing-agent/SKILL.md · 285 lines

How it starts

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

Managing an Agent

Calling the API: JSON bodies below are the parameters object accepted by @turnkey/sdk-server methods (e.g. create_api_keysclient.createApiKeys(...), update_policyclient.updatePolicy(...)). See the root SKILL.md for SDK setup and full endpoint-to-method mapping.

Independent recipes for day-2 agent operations. Each section is self-contained — find the one that matches your situation.

All recipes run with root credentials (or credentials with sufficient policy permissions). These are admin operations, not actions the agent performs on itself.

Base URL: https://api.turnkey.com

Rules (mandatory)

  1. Human confirmation before any policy change. Display the updated policy and explain what changes. Wait for explicit approval.
  2. Before deleting an agent user, verify it is the intended non-root agent. Deleting users is permanent. If the target might be a root, admin, or human user — or you cannot confirm the target is the disposable provisioned agent — do not call delete_users; stop and ask the human to confirm the exact user.

Prerequisites

Requires root API credentials. All recipes run with root/admin access, not agent credentials.

TURNKEY_API_PUBLIC_KEY=    # Root API key — public component (hex)
TURNKEY_API_PRIVATE_KEY=   # Root API key — private component (P-256 hex)
TURNKEY_ORGANIZATION_ID=   # Turnkey organization UUID

Use the getting-started skill if you still need to verify credentials.


My agent's transaction was denied

Use get_policy_evaluations to see exactly which policy blocked it and why.

POST /public/v1/query/get_policy_evaluations
{
  "organizationId": "<ORG_ID>",
  "activityId": "<DENIED_ACTIVITY_ID>"
}

The response contains a policyEvaluations array. Each entry shows a policy and its outcome:

Outcome Meaning
OUTCOME_ALLOW This policy permitted the action
OUTCOME_DENY_EXPLICIT This policy explicitly blocked the action (a DENY matched)
OUTCOME_DENY_IMPLICIT No ALLOW policy matched — blocked by default deny
OUTCOME_REQUIRES_CONSENSUS Policy requires multi-party approval before proceeding
OUTCOME_ERROR Policy evaluation errored (likely a no-short-circuit issue — see managing-policies)

Read the full file on GitHub · 285 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 285 lines · 54 tokens per session scan B 12d50cd2e87a

Subscribe to this mod's changes

managing-agent is a skill published in the GitHub repository tkhq/turnkey-agent-skills (2 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 2,633 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

signature-replay

Signature replay attacks — missing nonces, missing chain ID, ecrecover zero address, signature malleability, cross-chain replay.

PurpleAILAB/Decepticon · 31 tokens

official-sui-skills

Pointer to the official Mysten Labs skills for building on Sui — language fundamentals, object model, PTBs, SDKs, publishing, upgrades, frontend integration, accessing on-chain data. Maintained upstream at github.com/MystenLabs/skills; pinned to the same ref the audit catalog derives from (see…

MystenLabs/sui · 116 tokens

crypto-market-rank

Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…

tradecatlabs/tradecat-public · 85 tokens

trading-signal

Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for…

tradecatlabs/tradecat-public · 64 tokens

bridge

Cross-chain token transfers using Wormhole and CCTP.

alsk1992/CloddsBot · 13 tokens

onchainkit

Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.

alsk1992/CloddsBot · 24 tokens