---
title: "Secret vault and credential injection · Kylon"
description: "Tokens and API keys are stored encrypted and applied when a tool or command runs, so agents use real accounts without keys being pasted into the chat."
url: "https://kylon.io/product/credentials"
language: "en"
---

03 Connections

# Credentials.

Agents use real accounts. Keys stay out of the chat.

Tokens and API keys are stored encrypted, entered through a form, and applied when a tool or a command needs them.

[Start free](https://app.kylon.io/sign-up) [See the whole iceberg](https://kylon.io/product)

![Where this sits in the harness iceberg](https://kylon.io/v2/product/harness-iceberg.jpg)

-   [Chat with agents](https://kylon.io/product/agents "Chat with agents")
-   [Rooms and threads](https://kylon.io/product/workspace "Rooms and threads")
-   [Apps](https://kylon.io/apps "Apps")
-   [Results to approve](https://kylon.io/product/approvals#results "Results to approve")

-   [Agent identity](https://kylon.io/product/agents#identity "Agent identity")
-   [RBAC](https://kylon.io/product/access#rbac "RBAC")
-   [Memory](https://kylon.io/product/memory "Memory")
-   [Room permissions](https://kylon.io/product/access#room-permissions "Room permissions")

-   [Smart routing](https://kylon.io/product/agents#smart-routing "Smart routing")
-   [@mentions and handoffs](https://kylon.io/product/agents#handoffs "@mentions and handoffs")
-   [Thread briefs](https://kylon.io/product/agents#thread-briefs "Thread briefs")
-   [Agent directory](https://kylon.io/product/agents#agent-directory "Agent directory")

-   [API proxy](https://kylon.io/product/tools "API proxy")
-   [OAuth connections](https://kylon.io/integrations "OAuth connections")
-   Credential injection
-   Secret vault
-   [Model routing](https://kylon.io/product/models "Model routing")

-   [Sandboxed runtimes](https://kylon.io/product/sandbox "Sandboxed runtimes")
-   [Skills](https://kylon.io/product/skills "Skills")
-   [Automations](https://kylon.io/product/workflows#automations "Automations")
-   [Event triggers](https://kylon.io/product/workflows#triggers "Event triggers")
-   [Bring your own agent](https://kylon.io/bring-your-own-agent "Bring your own agent")
-   [Browser](https://kylon.io/product/sandbox#browser "Browser")
-   [Sub-agents](https://kylon.io/product/agents#sub-agents "Sub-agents")
-   [CLI and API](https://docs.kylon.io/cli/overview "CLI and API")

-   [Git drafts and previews](https://kylon.io/product/build-and-ship#drafts-and-previews "Git drafts and previews")
-   [Review and publish](https://kylon.io/product/build-and-ship#publish "Review and publish")
-   [App databases](https://kylon.io/product/build-and-ship#databases "App databases")
-   [File system](https://kylon.io/product/build-and-ship#file-system "File system")
-   [Custom domains](https://kylon.io/product/build-and-ship#custom-domains "Custom domains")

-   [Draft-first approvals](https://kylon.io/product/approvals#drafts "Draft-first approvals")
-   [Run history](https://kylon.io/product/run-history "Run history")
-   [Usage metering](https://kylon.io/product/usage "Usage metering")
-   [Data scoping](https://kylon.io/product/data-scoping "Data scoping")

Where it sits. Each dot is another part of the harness; select one to open it.

Secret vault

## Stored once, encrypted.

01

### Encrypted at rest

Tokens and API keys that Kylon stores are encrypted at rest.

02

### Entered through a form

Agents ask for a key through a secure card instead of the chat. An existing key can be rotated, added or renamed in place, on the same connection.

03

### Not shown back

The app does not display a stored key again. A person who manages the connection can copy it when they need it.

Credential injection

## Applied when used.

01

### Connected tools run on Kylon's side

When an agent uses a connected tool, Kylon applies the stored credential and returns the result to the agent.

02

### Checked before every command

When an agent's own command needs a key, access is checked again before the command starts, and the key is provided to that command rather than written into the conversation.

03

### On your own computer

For agents running on your computer, the Kylon CLI passes one connection's keys into one command and removes exact copies of them from its output.

## On the surface

A Connect button, a form to add or rotate a key, and no keys in the conversation.

Without it

Keys end up pasted into prompts, chat logs and memory, and nobody can say which agent holds what.

With Kylon

One place to add and rotate keys, and agents that use them without asking for a password in the chat.

Questions

## Good questions.

### Related

[OAuth connections](https://kylon.io/integrations) [API proxy](https://kylon.io/product/tools) [Model routing](https://kylon.io/product/models) [The whole iceberg](https://kylon.io/product)

### Can an agent see my key?

A connected tool never hands the key to the agent; Kylon applies it and returns the result. A command that needs the key itself receives it while it runs, so grant API keys to agents you trust with that service.

### What happens when I remove access?

New tool calls and new commands are checked again, so they stop using the key. A command that already received it keeps it until it ends, so rotate the key if it may have been copied.
