Skip to content
Back to skills

Apx Variables

ASecurity

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.

  • 42 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsgoshellbashgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add agentprojectcontext/apx --skill apx-variables --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Apx Variables?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Apx Variables
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentprojectcontext-apx-variables/badge)](https://www.skillsdirectory.com/skills/agentprojectcontext-apx-variables)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.