# SuperToolkit

<BentoHome
  claim="The agent gets the effect, never the credential."
  sub="Your agent asks for something by name: read this repository, open that issue. SuperToolkit decides whether it may (by default a read goes ahead and a write waits for you), puts the real credential on the wire on the way out, and writes down what happened. The agent holds a placeholder, stk:ref:github:v1, which is worth exactly nothing to whoever finds it. Hard to leak a key you were never given."
  actions={[
    { text: 'Install', link: '/install/' },
    { text: 'Read the limitations', link: '/limitations/', variant: 'secondary' },
  ]}
  quickstart={{
    command: "git clone https://github.com/SuperJackfruitLabs/supertoolkit && cd supertoolkit && go test ./e2e/ -v -run 'TestChildReachesProvider|TestForgeRulesAllowThenDeny|TestForgeDenied'",
    label: 'Quick start: broker a request, with the provider faked',
    note: "Needs Go 1.26 (the repository's go.mod) and curl, and nothing else: the provider is a local stand-in and the token is made up. Three tests: curl reaches the provider with a credential it never held, a forge preset lets a POST through and answers a DELETE with 403 before the provider sees it, and that refusal lands in the ledger with its rule and no secret. To broker your own services, start with Install.",
  }}
  agent={{ task: "Then explain how SuperToolkit would broker my agent's GitHub access, and list what I need before I connect a credential." }}
  ask={{ examples: ['Why did I get a 403 that says "Nothing was sent"?', 'Can my agent read the token from its environment?', 'Why does gh refuse the certificate on my Mac?', 'How do I let an agent open pull requests but never merge them?'] }}
  flowTitle="How a brokered request flows (step through it; it waits for you)"
>
  <FlowSteps
    label="Request step"
    steps={[
      { label: 'Agent', body: 'stk run -- your-agent starts the agent with HTTPS_PROXY pointing at the broker, the broker\'s CA, and a placeholder where each credential would be. NO_PROXY is cleared, because it is a confirmed bypass. The agent makes an ordinary HTTPS request with the placeholder in it.', items: [{ text: 'FORGEJO_TOKEN=stk:ref:forge-main:v1', card: true }] },
      { label: 'Proxy', body: 'The request reaches the broker, not the provider. The broker terminates TLS with its own local CA and looks up the service configured for that host.', items: [{ text: 'DELETE /api/v1/repos/acme/widgets/issues/1', card: true }] },
      { label: 'Decision', body: 'For a forge, its preset and your rules decide before the credential is even read: a deny always wins, and anything not allowed is denied. No preset allows DELETE. A refusal is answered at once with a 403 that names the rule: "supertoolkit denied this request: rule builtin:default-deny (no-rule). Nothing was sent."', items: [{ text: 'POST …/issues (preset: issues)', win: true }, { text: 'DELETE …/issues/1 → 403', out: true }] },
      { label: 'Injected', body: 'Only an allowed request makes the broker read the credential from its sealed store. It puts the real token where the placeholder was, or signs the request, or mints a short-lived token, as the service needs.', items: [{ text: 'stk:ref:forge-main:v1', out: true }, { text: 'Bearer <real token>', win: true }] },
      { label: 'Provider', body: 'The provider gets an ordinary request with a real credential, and its answer streams back to the agent as it arrives. The credential never entered the agent\'s process.', items: [{ text: 'the provider answers ✓', win: true }] },
      { label: 'Audit', body: 'Each request leaves a row in the audit ledger (stk audit): service, method, path, outcome, and a fingerprint where the credential would be, never the value. A refused request names its rule instead, since it never touched the credential.', items: [{ text: '403 denied: builtin:default-deny', out: true }, { text: 'credential: sha256:… (a fingerprint)', card: true }] },
    ]}
  />
</BentoHome>

## Why a broker

Let's begin with the problem we are actually solving. The standard way to give
an agent a tool is to put an API key in an MCP config file. That file is
plaintext, any process can read it, and the agent reads it to start the server —
so the credential ends up in the agent's own context, and from there in the
transcript and wherever transcripts are kept.

SuperToolkit holds the credential in a process the agent cannot read, and puts
it on the wire on the way out. The agent's environment carries a placeholder:

```sh
GH_TOKEN=stk:ref:github:v1
```

If the agent reads that, it has read nothing. It means nothing off this host.
You still get the effect; the key never joins the conversation.

<CardGrid>
  <Card title="Six operations" icon="setting">
    Substitute a token, substitute inside a Basic header, sign with SigV4, mint
    a JWT, refresh an OAuth 2.0 grant, or exchange a service credential for a
    token that lasts minutes. **Four of the six operations never put a
    long-lived secret on the wire at all.**
  </Card>
  <Card title="A read is the agent's" icon="approve-check">
    A write needs you. Defaults come from the catalogue and fail safe: anything
    unclassified is treated as a write, and `deny` is a floor no profile lifts.
  </Card>
  <Card title="A record that answers" icon="document">
    What was done, under which policy, and what the provider said — with a
    fingerprint where the credential would be, never the value.
  </Card>
  <Card title="Runs on your machine" icon="laptop">
    No account, no telemetry, no update check. The only hosts it contacts are
    the providers you connect and the token endpoints they publish.
  </Card>
</CardGrid>

## A client that ignores the proxy

A client that ignores proxy configuration entirely goes around the broker, and
**fails silently** — it sends the placeholder to the provider and gets a
plausible 401 back, which reads as a credential problem rather than a routing
one.

On Linux, a fronted MCP server run by `stk mcp serve` with `network: confined`
(the default for a server that declares `egress:`) is blocked from doing this:
its only route is the broker. With `network: watched` (also Linux only) a
direct connection is detected and the server stopped. Everywhere else,
including every `stk run` child and every fronted server on macOS, nothing
inside a proxy can detect a client that never speaks to it. We can detect the bypass from outside, which is what `stk doctor --probe` is for. Run
it before trusting a new client. You will know whether the client is on the
brokered path before a real credential depends on the answer. See
[Limitations](/limitations/).

<WetPaint>
  SuperToolkit works, and it is early: v0.0.9, released on 9 November 2026, is the current
  release. [Limitations](/limitations/) says what it does not do and why. Read it before trusting
  the broker with something that matters.
</WetPaint>

<JackAside>
  I read these docs so you don't have to read all of them at once. Ask me in the box up top. I
  hold no credentials either, and if the answer isn't in here I'll say so rather than make one up.
</JackAside>

For agents, the same docs are plain text: [`/llms.txt`](/llms.txt) indexes them, and
[`/llms-full.txt`](/llms-full.txt) is every page in one file.
