APX's variables, its store for API keys, tokens and other secrets, used as secret://NAME by MCP servers, engines and channels. Use it when the owner asks to create, rename, check or remove a variable, an env var or an API key, or gives you a key to keep.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Apx Variables?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentprojectcontext-apx-variables)
---
name: apx-variables
description: APX's variables, its store for API keys, tokens and other secrets, used as secret://NAME by MCP servers, engines and channels. Use it when the owner asks to create, rename, check or remove a variable, an env var or an API key, or gives you a key to keep.
---
# Variables in APX
A variable is a named secret in APX's own store (the macOS Keychain, or a private file on other systems). Things that
need a key name it as `secret://NAME`, and APX puts the value in only when it starts them: MCP servers (`--env`,
`--header`), engines and channels. You never see a value, and none ever goes in a prompt, a log, a file or a chat.
The owner sees and edits them in [Resources › Variables](apx:resources/variables). You use the `apx secrets` command
through `shell`. Never keep a key anywhere else: not in a file, `.env`, `~/.apx/vars.json` (the old APX v1, which this
APX does not read), a note, a memory, a task or your answer.
## Names
Letters, digits, `_`, `.` and `-`, starting with a letter or digit, at most 64. UPPER_SNAKE reads best
(`GITHUB_TOKEN`, `MAGIC_API_KEY`). If the owner gave a name, use exactly that one.
## Commands
```bash
apx secrets list # names and when each changed (never values)
apx secrets rm NAME # removes it: whatever names it stops working
```
Storing a value, only when the owner gave it to you and asked you to keep it:
```bash
printf %s "$VALUE" | apx secrets set NAME
```
The value goes on stdin, never as an argument. Prefer that the owner types it themselves in
[Resources › Variables](apx:resources/variables): a value you pass stays in this chat's history.
## A variable the owner will fill in
A variable cannot be empty. When the owner says they will set the value later, do not store a placeholder: use
`secret://NAME` where it is needed (for example in `apx mcps add`), then send them
[Resources › Variables](apx:resources/variables) with the exact name to create. Until then whatever uses it fails to
authenticate.
## Per project
A project can have its own value for a variable: it wins over the global one for the owner's MCP servers inside that
project (another account per client, for example). The owner sets it in the project's Resources › Variables.
## Renaming
There is no rename: the owner creates the new one, you point everything at it (`apx mcps set <server> --env
KEY=secret://NEW` or `--header …`), check it works, then remove the old one with the owner's OK.
## Tell the owner
Which name you used and where it is used. Never repeat a value, not even partly.