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.
git clone --depth 1 https://github.com/tkhq/turnkey-agent-skillsnpx agentmods add skills/tkhq/turnkey-agent-skills/managing-agentWrote 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.
[](https://agentmods.dev/skills/tkhq/turnkey-agent-skills/managing-agent)<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.
<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>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.
| Model | Per session | Once 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 |
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." 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
parametersobject accepted by@turnkey/sdk-servermethods (e.g.create_api_keys→client.createApiKeys(...),update_policy→client.updatePolicy(...)). See the rootSKILL.mdfor 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)
- Human confirmation before any policy change. Display the updated policy and explain what changes. Wait for explicit approval.
- 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) |
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.
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.
- 10d ago First seen · 285 lines · 54 tokens per session scan B 12d50cd2e87a
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.
Other skills, from other repositories
signature-replay
Signature replay attacks — missing nonces, missing chain ID, ecrecover zero address, signature malleability, cross-chain replay.
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…
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…
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…
bridge
Cross-chain token transfers using Wormhole and CCTP.
onchainkit
Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.