mnfst-gateway-cli
v6.29.4
Published
Manifest gateway management CLI (mnfst) — configure agents, providers, and routing from the terminal
Maintainers
Readme
Manifest CLI
mnfst manages a Manifest gateway from your terminal. Use it to create agents, connect AI providers, configure model routing, and inspect requests. The dashboard calls agents Harnesses; CLI commands use agent.
The npm package is mnfst-gateway-cli. The command it installs is mnfst. Node.js 20 or later is required.
Install
npm install -g mnfst-gateway-cli
mnfst --helpTo run it without a global install:
npx mnfst-gateway-cli --helpQuick start
Sign in to the hosted Manifest gateway, then create an agent and connect a provider:
mnfst login
mnfst agent create --name my-app --platform openai-sdk
mnfst provider connect openai --agent my-app --credential-env OPENAI_API_KEY
mnfst models my-app --provider openai
mnfst agent configure my-app --models gpt-4o-mini --provider openai
mnfst routing status my-app
mnfst agent setup my-appSet OPENAI_API_KEY in your environment before connecting the provider. Choose a model shown by mnfst models if gpt-4o-mini is unavailable to your account. mnfst agent setup returns wiring instructions with the agent key masked.
For a self-hosted gateway, pass its URL when you sign in:
mnfst login --url https://gateway.example.comThe CLI uses that gateway for later commands. You can select another gateway with --url or MANIFEST_URL.
Useful commands
| Task | Command |
| ------------------------------ | ---------------------------------------------- |
| Check your connection | mnfst doctor |
| List available agent platforms | mnfst agent platforms |
| List connectable providers | mnfst provider catalog |
| Review an agent's routing | mnfst routing status my-app |
| Read or set model params | mnfst routing params get my-app |
| Read recent requests | mnfst requests get --agent my-app --range 7d |
| See all commands and options | mnfst --help |
Most commands write JSON to stdout for scripts and coding agents. mnfst agent env and mnfst skill show write text. mnfst routing test sends a real provider request, which may incur provider charges. Destructive commands require --yes.
Credentials
Browser login is the default. For a script, provide a management credential through standard input or an environment variable:
printf '%s' "$MY_KEY" | mnfst login --token-stdin
# or
mnfst login --token-env MY_KEYThe CLI stores login credentials for each gateway host in ~/.config/manifest/config.json with file mode 0600. A stored credential is only sent to the host where it was saved. MANIFEST_API_KEY overrides the stored credential for the selected host.
Agent keys are separate from management credentials. The CLI stores a newly created agent key in its local keystore and does not print it in mnfst agent setup unless you pass --reveal. Use mnfst agent env my-app to get the key and URL for your application; its output contains the key, so handle it as a secret.
Usage telemetry
The CLI records usage telemetry by default. It batches events locally and normally sends one request per install per day. The payload contains a random, persistent install ID; CLI version; operating system; Cloud or self-hosted target; and each command's name, result, duration, and minute-level time. It may include the detected coding-agent runtime. It does not include command arguments, agent or provider names, gateway URLs, prompts, or credentials.
Set MANIFEST_TELEMETRY_DISABLED=1 to opt out. Telemetry files are stored beside the CLI config. You can set MANIFEST_CLI_TELEMETRY_ENDPOINT to send usage data to your own endpoint.
Documentation
See the CLI documentation for more examples and the GitHub repository for source and issues.
