trex.server.start

trex.server.start is a command for Claude Code from openshift-online/agent-control-plane. It costs 0 tokens per session (313 once invoked), scanned A, a copy of trex.server.start, MIT.

A command that builds and starts the API server locally with authentication and permission checks disabled for development.

In plain words
What is it for?
Use it to run the REST API and its background services on a developer machine; PostgreSQL must be running.
Why use it?
It provides a local server that can be tested without setting up login credentials or authorization rules.

Command for Claude Code

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/openshift-online/agent-control-plane/trex.server.start
Clone the repo
git clone --depth 1 https://github.com/openshift-online/agent-control-plane

Made for: Claude Code.

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 trex.server.start

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-online/agent-control-plane/trex.server.start.svg)](https://agentmods.dev/commands/openshift-online/agent-control-plane/trex.server.start)
Your own site
<a href="https://agentmods.dev/commands/openshift-online/agent-control-plane/trex.server.start"><img src="https://agentmods.dev/badge/commands/openshift-online/agent-control-plane/trex.server.start.svg" alt="Measured on agentmods" height="20"></a>
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 313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00313
Opus 5 $0.00000 $0.00156
Sonnet 5 $0.00000 $0.00063
Haiku 4.5 $0.00000 $0.00031

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

Security

Grade A, and why

trex.server.start scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:8000/api/ambient-api-server | jq
Origin

This is a copy

100% identical to trex.server.start — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

components/ambient-api-server/.claude/commands/trex.server.start.md · 44 lines

What it actually says

Start Server (Development Mode)

Build and start the API server with authentication and authorization disabled for local development.

Instructions

  1. Build the binary:

    make binary
    
  2. If the build fails, diagnose and fix compilation errors before proceeding.

  3. Start the server with auth disabled:

    make run-no-auth
    

    This runs ./ambient-api-server migrate then ./ambient-api-server serve --enable-authz=false --enable-jwt=false.

  4. The server starts on localhost:8000. Verify it's running:

    curl -s http://localhost:8000/api/ambient-api-server | jq
    

Prerequisites

  • PostgreSQL must be running. If the server fails to connect, suggest running /trex.db.setup first.
  • The binary must compile cleanly. If there are errors, fix them before retrying.

What's Running

The serve command launches four concurrent servers:

  • API server on localhost:8000 (REST endpoints)
  • Metrics server on localhost:8080 (Prometheus metrics)
  • Health check server on localhost:8083
  • Controllers server (event-driven background processing via PostgreSQL LISTEN/NOTIFY)

Quick Test

After the server starts, test with:

curl -s http://localhost:8000/api/ambient-api-server/v1/ | jq
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. 4d ago First seen · 44 lines · 0 tokens per session scan A 84bb7936a416

Subscribe to this mod's changes

trex.server.start is a command published in the GitHub repository openshift-online/agent-control-plane (10 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 313 tokens. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to trex.server.start, differing in 0 lines, and is treated as a copy.