meridian-governance-cli
Scriptable command-line client for Meridian Governance Router, over meridian-client. Installs as the meridian command — one short command, same shape as mta or claude.
The PyPI package is meridian-governance-cli; the command it installs is meridian. Not to be confused with the unrelated meridian-cli package also on PyPI.
Closer in spirit to the aws or stripe CLIs than to an app's own CLI:
subcommands over an API, scriptable, mostly no interactive loop required —
with one exception. chat absorbed
Local-AI's reference
implementation upstream (meridian-agent-v1.0.py, decided 2026-10-18) so
customers get one governed resolve -> dispatch -> audit loop from Meridian
itself, interactively or scripted, rather than writing that sequence
themselves against the SDK.
Install
curl -fsSL https://dev-meridian.mytrustworthy.ai/install.sh | bash
That's a thin wrapper over a standard tool installer: it uses uv (or pipx
if that's what you have, installing uv if you have neither). Isolation, PATH
and uninstall are theirs, so there's nothing custom to understand. The manual
equivalent is just:
uv tool install meridian-governance-cli # or: pipx install meridian-governance-cli
uv tool update-shell # only if `meridian` isn't found afterwards
Remove it with uv tool uninstall meridian-governance-cli (or pipx uninstall),
or run the uninstaller, which also offers to revoke your API key on the server
and to delete ~/.meridian (saved credentials, chat logs), asking before each:
curl -fsSL https://dev-meridian.mytrustworthy.ai/uninstall.sh | bash
Writing code against Meridian instead of using the command? That's the SDK,
pip install meridian-client — see meridian-client/SKILL.md.
Get credentials
meridian signup # new org — prompts for org name, email, password
# or
meridian login # existing account — authenticates, mints a new key
meridian whoami # confirm what's saved
Credentials live in ~/.meridian/config.json (mode 600 — api_key is in
there in plaintext, same tradeoff mta-cli makes for its own token). Override
the location with MERIDIAN_CLI_HOME if you want more than one profile.
Commands
meridian resolve my_agent [--project-id ID] [--json]
meridian explain ROUTING_LOG_ID
meridian audit ROUTING_LOG_ID --input-tokens N --output-tokens N
meridian projects create --name NAME [--quality Q] [--cost C] [--risk R]
meridian projects list
meridian agents create PROJECT_ID AGENT_NAME [--pinned-model M] [--quality-override Q] [--allowed-hubs h1,h2]
meridian agents list PROJECT_ID
meridian agents update PROJECT_ID AGENT_NAME [--pinned-model M] [--quality-override Q] [--enable|--disable]
# --pinned-model "" clears the pin; M is a deployment key
# from `meridian catalog` (its model_key field), not a model name
meridian hubs list
meridian hubs discover
meridian voice-hubs list # full admin shape - needs a tenant key
meridian voice-hubs available # safe-to-browser shape: has_credential, no endpoint/key fields
meridian voice-hubs create --name N --hub-type T [--endpoint-url U] [--auth-key-env NAME] [--region R]
meridian voice-hubs update HUB_ID [--name N] [--endpoint-url U] [--auth-key-env NAME] [--enable|--disable]
meridian voice-hubs delete HUB_ID
meridian voices list HUB_ID
meridian voices create HUB_ID --voice-key KEY --backend-voice-id ID [--display-name N] [--language L] [--gender G]
meridian voices update VOICE_ID [--display-name N] [--language L] [--enable|--disable]
meridian voices delete VOICE_ID
meridian projects voices PROJECT_ID # every voice the project's org has, flagged available/reason
meridian synthesize PROJECT_ID --text "..." (--agent-id N | --voice-id ID) --out out.mp3
# --agent-id resolves through the agent's effective voice
# (agent default -> project default); --voice-id is the
# numeric llmr_voices.id from `meridian voices list` - a
# voice_key string is rejected (422), numeric only. No
# cross-engine failover - a down/disallowed hub is a clean
# error, never a substitution.
meridian keys list [--json]
meridian keys create [--name NAME]
meridian keys revoke KEY_ID
meridian catalog
meridian logout [--revoke]
meridian python-path # print the interpreter this command runs under —
# has `meridian` importable even inside a pipx venv.
# For a host program that wants `from meridian import
# Meridian` directly instead of shelling out: run this
# once to find the right interpreter, don't parse the
# `meridian` executable's shebang to guess it.
meridian chat [--agent NAME] [--code-agent NAME] [--project-id ID] [--max-tokens N]
meridian chat --one-shot "message" [--json] [--max-tokens N]
meridian chat --daemon [--host HOST] [--port PORT] [--refresh-interval SECS]
Every data-returning command without a dedicated human-readable format
(explain, audit, catalog, projects list, agents list) prints raw
JSON — pipe into jq.
chat
Per-turn flow: resolve(agent) -> catalog/hubs join -> dispatch to the
chosen hub -> audit. Routing, scoring and governance all live in
Meridian; chat just drives the loop. Dispatch is keyed on the hub's own
wire protocol (hub_type), not which company trained the model
(provider) — an Anthropic-family model served through OpenRouter or
Cheaper-Inference is genuinely OpenAI-compatible and dispatches that way.
Supported today: any OpenAI-compatible hub (on-prem vLLM/Ollama,
OpenRouter, Cheaper-Inference), AWS Bedrock, and direct Anthropic. Bedrock
and Anthropic need their own extras (pip install 'meridian-governance-cli[bedrock]' / [anthropic]) — langchain-aws/
langchain-anthropic, the same libraries MTA's own production gateway uses.
Bedrock uses boto3's default credential chain; Anthropic reads
ANTHROPIC_API_KEY from the environment. Neither has --max-tokens
honored as precisely as the OpenAI-compat path (LangChain's streaming
doesn't report real usage either — both estimate token counts at char/4).
azure-foundry is a known, separate gap — some of its deployments speak
OpenAI's shape and some speak Anthropic's, at a non-generic URL path — and
OpenRouter/Cheaper-Inference dispatch sends no Authorization header yet
(a different, pre-existing gap noticed but not fixed here).
- No args: interactive REPL.
/helpinside it for slash commands (/catalog,/hubs,/refresh,/history,/export,/window, …). - Three REPL modes, switched with
/chat,/code,/manage(defaultchat):chat— plain conversation,resolve(--agent)(default agent nameconcierge— every org gets a default project + aconciergeagent provisioned automatically on signup, so this works immediately with no setup).code— same loop, different binding:resolve(--code-agent)(default agent namecode) plus a one-time system preamble. Its own history, separate fromchatmode's. This is not a tool-using coding agent — Meridian's dispatch layer never sendstoolsto the hub, so this is "a different agent/model to resolve against," nothing more. A real tool-execution loop would be new dispatch-layer work, not a REPL mode.manage— no LLM calls at all:/projects,/agents,/keys(list/create,/keys revoke ID) over the account you're logged into. Same functionsmeridian projects/meridian agents/meridian keyscall outside the REPL (meridian_cli/manage.py) — one implementation, not two that can drift./project [ID]works in any mode: with no argument, shows the active project and lists your org's projects; with an ID, switches to it (validated against your org's actual projects first). Affects the nextresolve()call inchat/codemode immediately.
--one-shot "message": single turn, prints the response, exits.--jsonemits structured output (response,model,hub,routing_log_id,latency_ms,usage) instead of plain text. Exit code:0an answer was produced (including a token-budget-exhausted message — that's a completed, audited call, just an unhelpful one),1a real failure (resolve()failed, or dispatch returned an error — unreachable hub, bad model id, HTTP error),2misuse (--daemonand--one-shottogether — mutually exclusive, now rejected instead of silently running the daemon and dropping--one-shot).--daemon: long-lived local OpenAI-compatible endpoint (POST /v1/chat/completions,GET /v1/models,GET /health) — point an existing OpenAI-SDK-based app athttp://127.0.0.1:8700and it works unchanged, with Meridian's governance and audit trail in the middle. The F9 "broker" shape from Local-AI's feedback. Stateless across requests, same as the real OpenAI API: your app holds history and sends the fullmessagesarray each call.--max-tokens: reasoning models can need a much larger budget than the default (8192) just to reach visible content — confirmed live against a real deployment where the same five-word prompt burned anywhere from ~2400 to the full 8192-token budget purely on reasoning, before any answer. If a response comes back as a token-budget notice instead of text, raise this — unless the prompt matches the pattern below, where raising it won't help.- Exact-count / constraint-satisfaction prompts can make reasoning never
converge, at any budget. Isolated live against
qwen3.6:35b:"Say hello in exactly five words."burned the entire reasoning budget at 8192, then again at 16384 — raising--max-tokensdidn't make it converge faster, it just filled whatever ceiling it was given. The same model answers the unconstrained version ("Say hello.") normally in 186 reasoning tokens, and a substantive non-counting prompt normally in ~700. So this isn't the model's reasoning budget being too small — it's a specific model failure mode where exact-count constraints seem to trap it in verifying the count. Not a Meridian or CLI bug; a model characteristic to know about before raising--max-tokensin response to a stuck "exactly N words/items" prompt — raising it will not fix that case.
hubs discover
Probes localhost for a local Ollama (:11434/api/tags) or vLLM
(:8000/v1/models), proposes registering what it finds (models included),
and asks for confirmation before actually registering anything — it never
writes to your org's catalog without that confirmation. If nothing
responds on localhost, it falls back to prompting for a provider + URL
manually, probes that instead, and asks for confirmation the same way.
Same wizard from meridian hubs discover and /discover inside meridian chat's
manage mode (meridian_cli/manage.py + chat.py's cmd_manage_discover)
— one implementation either way.
Deliberately only probes localhost, never a LAN subnet: unlike a
single-household tool that can hardcode its own known boxes' IPs,
Meridian is multi-tenant — there's no fixed list of "this customer's
boxes" to guess at. localhost is the one address that means the same
thing for every caller; anything else goes through the manual-entry
fallback instead of a scan.
Also why this is a client-side probe at all, not a call to the backend's
own /discover endpoint: on a SaaS instance, "localhost" from the
server's perspective means the server's own container, not your
laptop. Discovery and model-listing both happen in the CLI process so
they can actually reach localhost on the machine meridian is running on;
the resulting model list is registered directly via register_models,
never by asking the server to re-discover something it structurally
cannot reach.
What this deliberately doesn't do
hubs discoveronly knows Ollama and vLLM, and only probeslocalhost. No cloud-hub registration commands (bedrock/anthropic/openrouter/etc.) — those need credentials entered deliberately, not something to probe for. Console-only for now.
Metadata
Release files for meridian-governance-cli 0.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meridian_governance_cli-0.15.0.tar.gz | 46.9 kB | Without provenance | Details for meridian_governance_cli-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meridian_governance_cli-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for meridian_governance_cli-0.15.0-py3-none-any.whl |
Total release size: 82.4 kB
Release files / meridian_governance_cli-0.15.0.tar.gz
| Download URL | meridian_governance_cli-0.15.0.tar.gz |
|---|---|
| Size | 46.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a595e96db4b1ffdb52120e890aab87cf7ce4251d26b3bb5101e6ed5c1f02fd4
|
|
BLAKE2b-256 checksum How to use checksums |
fdd258d530a1b822911b3c66575694aeec0cf37f21b5b25abb70a28fdbf68267
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / meridian_governance_cli-0.15.0-py3-none-any.whl
| Download URL | meridian_governance_cli-0.15.0-py3-none-any.whl |
|---|---|
| Size | 35.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c890a64dff3609cc6d7fd1c70ab33ce9294b4d28fcd32ffb0d22dfe023033f4c
|
|
BLAKE2b-256 checksum How to use checksums |
bc6ecb631903be8819ff8c6d9e8b7c833dee21f9a70501580f9d3114cf1c714d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for meridian-governance-cli 0.15.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.