axonflow-login

axonflow-login is a command for Claude Code from getaxonflow/axonflow-claude-plugin. It costs 36 tokens per session (680 once invoked), scanned A, original, MIT.

A command for saving AxonFlow login credentials locally. AxonFlow is a service that governs and checks agent tool calls.

In plain words
What is it for?
Use it to save an AxonFlow Pro license token or self-hosted/Enterprise organization credentials for later authentication.
Why use it?
It prevents credentials from having to be supplied again for every governed request and supports both hosted and self-hosted setups.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the axonflow plugin — 7 skills, 10 commands, 2 hooks, 1 MCP server shipped together

Good fit Use it to save an AxonFlow Pro license token or self-hosted/Enterprise organization credentials for later authentication.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add getaxonflow/axonflow-claude-plugin
Claude Code
/plugin install axonflow

Made for: Claude Code.

Or install axonflow, the plugin that ships this one along with the rest of its 7 skills, 10 commands, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for axonflow-login

README.md
[![agentmods](https://agentmods.dev/badge/commands/getaxonflow/axonflow-claude-plugin/axonflow-login.svg)](https://agentmods.dev/commands/getaxonflow/axonflow-claude-plugin/axonflow-login)
Your own site
<a href="https://agentmods.dev/commands/getaxonflow/axonflow-claude-plugin/axonflow-login"><img src="https://agentmods.dev/badge/commands/getaxonflow/axonflow-claude-plugin/axonflow-login.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 680 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.00680
Opus 5 $0.00018 $0.00340
Sonnet 5 $0.00007 $0.00136
Haiku 4.5 $0.00004 $0.00068

Measured 7d ago against content hash bc567b72855e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

axonflow-login 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 7d ago.

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.

commands/axonflow-login.md · 33 lines

What it actually says

Persist an AxonFlow credential to the plugin's local config. Two modes, selected by the argument shape:

Mode A — Pro license token (default). $ARGUMENTS is an AXON-... token. Persist it so every subsequent governed tool call carries it as the X-License-Token HTTP header. The agent's plugin-claim middleware then enriches the request context with Pro-tier metadata (extended retention, higher daily quotas, etc.).

Mode B — self-hosted / Enterprise Basic-auth credential. $ARGUMENTS begins with --self-hosted followed by <org_id> <license_key>. Persist a base64 Basic-auth credential to ~/.config/axonflow/self-hosted-auth.json so BOTH the MCP headersHelper and the per-call hooks can authenticate to your self-hosted/Enterprise agent even when AXONFLOW_AUTH is not exported into every subprocess (the gap behind axonflow-claude-plugin#94). This mirrors the durable on-disk credential Community-SaaS already caches in try-registration.json. Precedence: the AXONFLOW_AUTH env var always wins; this file is the fallback. Run:

$CLAUDE_PLUGIN_ROOT/scripts/login.sh --self-hosted '<org_id>' '<license_key>'

Surface the helper's OK … / ERR … line verbatim. The credential takes effect on the next governed tool call (hooks) and on the next Claude Code session start (MCP headersHelper).


For Mode A, parse the argument as <token>. If missing, ask the user for it. Tokens issued by the AxonFlow billing webhook always start with AXON- and are at least 32 characters long. If the input doesn't look like that, refuse and ask the user to paste the token from their welcome email.

Then run the plugin's login.sh helper using the Bash tool. The helper persists the token to ~/.config/axonflow/license-token.json (mode 0600 inside a 0700 directory) and validates the AXON- prefix locally before writing.

$CLAUDE_PLUGIN_ROOT/scripts/login.sh '<the AXON- token>'

The helper writes a single-line OK … (success) or ERR … (failure) to stdout. Surface the line verbatim, then add the operator hint:

"Pro tier license saved. Restart any open Claude Code session for the new token to take effect on the MCP server connection (the plugin's headersHelper only fires at session start; the per-call pre-tool-check hook picks the token up immediately on its next invocation)."

If the user prefers env-var configuration, tell them: "Alternatively, set AXONFLOW_LICENSE_TOKEN=<your AXON- token> in your shell profile — the env var takes precedence over the saved file and avoids the on-disk credential entirely."

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. 7d ago First seen · 33 lines · 36 tokens per session scan A bc567b72855e

Subscribe to this mod's changes

axonflow-login is a command published in the GitHub repository getaxonflow/axonflow-claude-plugin (4 stars, last pushed 2d ago), licensed MIT. It adds 36 tokens to every session and 680 once invoked, about $0.0002 per session on Opus 5. 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.

Related

Other commands, from other repositories