agentleFS
agentstationagentstation/skills/starport/SKILL.md

starport

Skill1 starsChanged 2 months agoMITView on GitHub

Run and operate a self-hosted Starport LLM inference gateway. Use when a task must install Starport, start a gateway, answer model catalog questions, point a harness or SDK at the gateway, or diagnose a deployment.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the two credential kinds separate.

    line 17
  2. Distinctive:

    Wait for readiness before the first request:

    line 48
  3. Distinctive:

    Use the printed gateway API key as the bearer token.

    line 71
  4. Very specific:

    Run starport agent setup after a CLI upgrade to reinstall this skill.

    line 116

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Starport

Starport is a self-hosted LLM inference gateway. It serves OpenAI-compatible routes at /v1 and OpenRouter-compatible routes at /api/v1. One gateway routes requests across every provider in its catalog and picks routes by price, latency, or an explicit order.

Keep the two credential kinds separate. A gateway API key authenticates a client to Starport. A provider credential pays a provider. Never use one where the other belongs.

Install

Install the released cask on macOS or Linux:

brew install agentstation/tap/starport
starport --version

GitHub Releases at agentstation/starport carries checksummed archives for macOS, Linux, and Windows.

Start a development gateway

Export one provider credential, then start an isolated gateway:

export OPENAI_API_KEY="replace-with-provider-inference-key"
starport dev --no-open

The command starts a loopback gateway on port 8080 with in-memory state. It prints one temporary gateway API key and a one-time console launch link. Add --no-open to print the link instead of opening a browser, which fits an agent session. The gateway blocks the terminal, so run it in a background process and keep it running.

Wait for readiness before the first request:

curl --fail http://127.0.0.1:8080/health/ready

Start a durable gateway

For state that survives restarts, initialize once and then serve:

starport init
starport serve

starport init writes local configuration, creates encrypted storage, and prints the first gateway API key once. Store that key: no later command prints it again. When a browser must reach the console without a launch link, it presents this machine's local admin token instead. starport auth token --copy puts that token on the clipboard.

Point a client at the gateway

Use the printed gateway API key as the bearer token.

  • OpenAI SDK or harness: base URL http://127.0.0.1:8080/v1.
  • OpenRouter SDK or harness: base URL http://127.0.0.1:8080/api/v1.
export STARPORT_API_KEY="replace-with-gateway-api-key"
curl --fail-with-body http://127.0.0.1:8080/v1/chat/completions \
  -H "Authorization: Bearer $STARPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"ping"}]}'

Model IDs use the provider/model form. A bare model name is not routable.

Answer catalog questions

The CLI answers catalog questions offline from the embedded catalog. Use --json for machine-readable output.

starport models search gpt-4o --json
starport models show openai/gpt-4o-mini --json

models search matches every query word against model IDs, names, and authors. It answers a compact summary: ID, name, context length, and token prices. models show answers the full projection for one exact model ID. That projection carries prices, capabilities, modalities, and every routable provider offering.

Diagnose a deployment

starport doctor --json
starport config validate
starport config show --json

starport doctor runs read-only checks on paths, configuration, the master key, the catalog, and provider adapters. Add --probe to inspect configured storage and API keys in read-only mode.

Read more

  • Run starport agent setup after a CLI upgrade to reinstall this skill.
  • starport --help lists every command.
  • The repository README at agentstation/starport documents the quick start.
  • docs/OPERATOR-GUIDE.md in that repository documents operations: budgets, presets, caching, guardrails, webhooks, and telemetry export.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.