Skip to content
Skills Library
AI & agents · Learning & explanation

agent-keys

/agent-keys

Use when a user asks how to authenticate as an agent, create or rotate API credentials, or understand the lifecycle of agent keys on Shuriken.

Licence
MIT
Last repository change
11.05.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 11.05.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when a user asks how to authenticate as an agent, create or rotate API credentials, or understand the lifecycle of agent keys on Shuriken.

Original author description

Use when a user asks how to authenticate as an agent, create or rotate API credentials, or understand the lifecycle of agent keys on Shuriken.

How it works

  1. Approach
  2. Key lifecycle
  3. One user, one integration
  4. Pointers
Original SKILL.md headings · 31 lines, 356 words
SKILL.md preview
---
name: agent-keys
description: Use when a user asks how to authenticate as an agent, create or rotate API credentials, or understand the lifecycle of agent keys on Shuriken.
---

# Using agent keys

Agent keys are Shuriken's credential primitive for programmatic access. They authenticate a caller, carry a set of scopes defining what the caller can do, and are revocable without affecting the owning user's session.

## Approach

1. **One key per integration, not per user action.** An agent key represents a long-lived integration. Do not create a key per request.
2. **Grant the minimum scope.** See `shuriken:scoping` for how scopes are structured and how to reason about least-privilege.
3. **Treat keys as secrets.** Store them in environment variables or secret managers. Never hard-code. Never log. Never commit.

## Key lifecycle

- **Create** at [app.shuriken.trade/agents](https://app.shuriken.trade/agents) (the authenticated user's agent-key management page), or via the agent-key management API once bootstrapped. The key is displayed once at creation — capture it immediately.
- **Use** the same agent key across every surface:
  - REST — pass the key in the `Authorization: Bearer <key>` header on every request.
  - WebSocket — authenticate the connection with the same agent key (subject to the key's scopes, just like REST). The streaming endpoints share the same credential model; there is no separate websocket token.
  - SDKs — both the TypeScript and Rust SDKs accept the agent key directly in the client constructor. Prefer the SDK path when the user's language is supported; it handles header/connection wiring for you.
- **Rotate** periodically and after any suspected compromise. Rotation means: create the new key, deploy it to the consuming service, then revoke the old key. Not the reverse.
- **Revoke** when an integration is retired, a contractor departs, or the key is exposed. Revocation is immediate.

## One user, one integration

An agent key belongs to a single Shuriken user. An integration holds that user's key (or the few keys that user has created for different purposes). There is no multi-tenant flow where an app mints keys on behalf of many users — every key is owned by the Shuriken account that created it.

## Pointers

- Platform documentation (including key management): fetch `https://docs.shuriken.trade/llms.txt` and search for "agent keys"
- OpenAPI paths: `/v1/agent-keys/*` — fetch `https://docs.shuriken.trade/api-reference/openapi.json` for current signatures
- Related skills: `shuriken:scoping`, `shuriken:api-integration`

Versions

The database has no other skills named agent-keys.

Database snapshot: 13.11.2026 · package version 0c9017c97d4e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90learn-about-shuriken
    Use when a user asks conceptual questions about Shuriken — what it does, what features exist, how a feature works, or "what is X on Shuriken?" Does not cover programmatic integration (that's `shuriken:api-integration`).
  • 90scoping
    Use when a user asks what an agent key can do, how Shuriken permissions work, or which scopes they need for a given integration.
  • 100env-vars
    Manage environment variables and API keys in the sandbox. Use when the user asks to set, update, or manage environment variables, API keys, secrets, or credentials, or when you need to configure API keys or secrets for tools, scripts, or services you are running.
  • 95cognee-keys
    Manage the API keys of this plugin's Cognee agent, one per machine. Use when the user asks to list, clean up or revoke Cognee plugin keys, when a session start says this machine is on the personal key because the agent is full, or when "cognee keys" / "key limit" / "revoke a key" comes up.
  • 95cognee-keys
    Manage the API keys of this plugin's Cognee agent, one per machine. Use when the user asks to list, clean up or revoke Cognee plugin keys, when a session start says this machine is on the personal key because the agent is full, or when "cognee keys" / "key limit" / "revoke a key" comes up.
  • 85agent-secrets
    Keeps API keys and credentials out of coding agents with Leverage: apps connect through its gateway, and secrets are added to HTTPS requests without ever entering the agent's machine. Use when the user says "keep API keys out of the agent", "the agent shouldn't see our secrets",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.