Skip to content
user

credential-brokers

Credential resolution — env → OS keyring → dotfile. Never cleartext.

1 skills1 human gate5–15 min/session

What changes when you install this

After installing credential-brokers, every credentialed skill in your toolkit resolves its token in-process — environment variable, OS keyring, or a local dotfile — without the value ever reaching the model. You set up a credential once; every subsequent session that needs it resolves it automatically.

Skills in this pack

  • credential-setup1 gate

    Walks through establishing a credential for a service — API key, personal access token, or SSO cookie — and stores it via the configured resolution chain.

The journey

Stage 1 — Identify the credential needed

You decide to install a credentialed pack — figma, atlassian, or another service that requires an API key or personal access token. The agent walks you through identifying what credential type the service requires and which resolution path to use.

You: Decide where the credential will live — environment variable, OS keyring, or dotfile — based on your environment and security preferences. Read the credential-setup output to confirm the resolution path makes sense. For most developer workstations, the OS keyring is the right choice: it persists across terminal sessions and is encrypted at rest. For CI environments, an environment variable is the right choice.


Stage 2 — Set up and verify

The agent runs credential-setup, prompts for the token value (which is never logged), and stores it via the configured resolution chain. It then runs a test invocation to confirm the credential resolves correctly before ending the session.

You: Provide the token value when prompted — this is the one moment the credential passes through your clipboard or input. Verify the test invocation succeeded. If it fails, work through the resolution chain with the agent: is the environment variable exported in the current shell? Is the keyring unlocked? Is the dotfile in the expected location and readable?


Stage 3 — Credential available to all sessions

After setup, the credential resolves automatically in every subsequent session that needs it. No repeat entry. The token value is stored in the configured location and never passes through the model again.

You: Confirm that the first real invocation of the credentialed skill works end-to-end. The most common post-setup failure is a scope mismatch — the token was set up correctly but lacks the permissions the skill needs. If a skill returns an auth error after a successful setup, the first check is always: does this token have the right scope for this operation?

Human gates

For each gate, everything you need to make a confident decision.

  • G-setup

    Confirm credential type and storage location

    Trigger
    Before credential-setup runs — to select the right resolution path
    Time
    3–8 minutes
    What to check, good, bad, consequence

    What to check

    • What type of credential does the service require — API key, personal access token, OAuth token, or SSO cookie?
    • Which resolution path fits your environment: environment variable (fast, CI-friendly), OS keyring (secure, persistent across shells), or dotfile (portable, requires file-permission discipline)?
    • Does the credential have a scope or permission level requirement? (A read-only token that a write-capable skill needs will fail at runtime, not at setup.)
    • Is this credential shared across multiple services — or per-service? (A Figma token for personal files is different from a team-scoped token.)

    What good looks like

    A credential stored in the right resolver for your environment, with the correct scope for every skill that will use it — confirmed by a test invocation before you leave the setup session.

    What bad looks like

    A credential stored in an environment variable that only exists in the current shell — it works now, silently fails in a new terminal or CI. Or a token set up for read access when the skills you're installing need write access.

    Consequence of skipping

    A credential that works in setup but fails at runtime is the most common source of confusing mid-session errors. Credentialed skills report auth failures with opaque messages — the setup gate is the cheap place to discover the mismatch.

Typical session

Agent turns
2–4
Human gates
1
Wall-clock time
5–15 min

Install and next steps

agentbundle install --pack credential-brokers --scope user