profile

A command-line system for saving provider settings—such as an API key, base URL, and model choices—under named profiles and switching between them.

In plain words
What is it for?
Use it to list, add, inspect, edit, rename, remove, and activate global provider profiles stored in the aitm configuration file.
Why use it?
It avoids repeatedly editing individual provider settings when changing the service or model setup used by aitm.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/developerz-ai/ai-task-master/profile
Clone the repo
git clone --depth 1 https://github.com/developerz-ai/ai-task-master
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01253
Opus 5 $0.00000 $0.00626
Sonnet 5 $0.00000 $0.00251
Haiku 4.5 $0.00000 $0.00125

Measured yesterday against content hash f3c214df0435, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

profile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/aitm/docs/commands/profile.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

aitm profile

Named provider profiles — bundle the provider triple (API key + base URL + per-tier models) under a name and switch the whole provider in one command, version-manager style (think nvm use). Profiles live in the global config file ~/.aitm.json under profiles, with activeProfile naming the one in effect.

See ../providers.md for the provider-switching walkthrough and ../config.md §"Profiles" for how a profile resolves at run time.

Signature

aitm profile list
aitm profile use <name>
aitm profile add <name> [--preset openrouter|zai] [--base-url <url>]
                        [--api-key <key> | --api-key-stdin]
aitm profile set <name> <key> <value>
aitm profile get <name> <key>
aitm profile remove <name>
aitm profile rename <from> <to>
aitm profile show [<name>]

Profiles are global-only (always written to ~/.aitm.json); there is no --project selector. <key> for set/get is openrouterApiKey, baseURL, or models.<tier>.

<name> must be non-empty and cannot be __proto__, prototype, or constructor: those name Object.prototype members, so every subcommand rejects them up front and profile lookups are own-property only — an inherited key is never mistaken for a profile.

Subcommands

Command Effect
list List every profile. * marks the active one; shows base URL + a masked key hint.
use <name> Make <name> the active profile. Errors if the profile doesn't exist (no dangling pointer).
add <name> Create a profile. --preset seeds base URL + models; --base-url / --api-key override. The first profile created auto-activates. Prefer --api-key-stdin (pipe the key) for scripts/CI — a key passed as --api-key is visible in process listings and shell history, so aitm warns when you use it.
set <name> <key> <value> Set one field. Value is JSON-parsed (bare strings stay literal), like config set.
get <name> <key> Print one field's value.
remove <name> Delete the profile. If it was active, activeProfile is cleared.
rename <from> <to> Rename a profile in place, keeping every field. Errors if <from> doesn't exist or <to> already does. If <from> was active, activeProfile is repointed at <to>.
show [<name>] Print a profile as JSON with the key masked. Defaults to the active profile.

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 101 lines · 0 tokens per session scan A f3c214df0435

Subscribe to this mod's changes

profile is a command published in the GitHub repository developerz-ai/ai-task-master (5 stars, last pushed 25d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,253 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.