server

A command group for choosing and checking the server endpoint used by the AgentSecrets command-line tool. An endpoint is the web address where the tool sends its requests; it can be the default service or a self-hosted server.

In plain words
What is it for?
Viewing, changing, testing, and resetting the AgentSecrets server address globally or for a specific repository.
Why use it?
It lets a project or machine use the correct AgentSecrets service and shows where requests will go. This is useful when running your own server instead of the default one.

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/the-17/agentsecrets/server
Clone the repo
git clone --depth 1 https://github.com/The-17/agentsecrets
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 622 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.00622
Opus 5 $0.00000 $0.00311
Sonnet 5 $0.00000 $0.00124
Haiku 4.5 $0.00000 $0.00062

Measured 2d ago against content hash 4d2cc59d0ee2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

server 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 2d 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.

docs/commands/server.md · 103 lines

How it starts

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

agentsecrets server

View, set, test, and reset the target AgentSecrets server endpoint.

Usage

agentsecrets server get
agentsecrets server set <URL> [--project] [--force]
agentsecrets server status
agentsecrets server reset [--project]

Description

The server command group allows you to manage where the AgentSecrets CLI sends API requests.

By default, AgentSecrets communicates with the official default AgentSecrets Server (https://secrets-api-orpin.vercel.app/api). When deploying an open-source self-hosted AgentSecrets server, you can point your local CLI to your custom instance globally or for a specific repository.

Subcommands

agentsecrets server get

Displays the active server endpoint, its configuration source, and whether the server is the default or self-hosted instance.

agentsecrets server get

Output:

AgentSecrets Server Target
  ──────────────────────────────
  Target Type:                   AgentSecrets Server (Default)
  API Endpoint:                  https://secrets-api-orpin.vercel.app/api
  Config Source:                 AgentSecrets Server (default)

Aliases: agentsecrets server show, agentsecrets server


agentsecrets server set <URL>

Sets the target server URL and verifies reachability via an HTTP ping.

# Global configuration (stored in ~/.agentsecrets/config.json)
agentsecrets server set http://localhost:8000

# Project-specific override (stored in .agentsecrets/project.json)
agentsecrets server set https://api.agentsecrets.internal.corp --project

# Skip connectivity verification
agentsecrets server set http://localhost:8000 --force

agentsecrets server status

Tests connectivity and latency to the active server endpoint.

agentsecrets server status

Output:

Server Connection Status
  ──────────────────────────────
  Server Type:                   AgentSecrets Server (Default)
  Endpoint:                      https://secrets-api-orpin.vercel.app/api
  Config Source:                 AgentSecrets Server (default)
  Status:                        ONLINE
  Latency:                       42ms

Read the full file on GitHub · 103 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. 2d ago First seen · 103 lines · 0 tokens per session scan A 4d2cc59d0ee2

Subscribe to this mod's changes

server is a command published in the GitHub repository The-17/agentsecrets (172 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 622 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-30.