multi-router.aidocs

CLI & Agent Skill

Commands

The mr command groups, output format and options shared by every command.

Every command follows the pattern mr <group> <action> [options]. Run mr --help for the full list, or add --help to a command for its usage.

Command groups

GroupManagesAPI Reference
mr routerRouters, their members, aliases and tagsRouters
mr provider-keyLLM provider keysProvider Keys
mr model-groupModel groups and their membersModel Groups
mr catalogThe model catalog, publishers, providers and tagsCatalog
mr promptPrompts and their versionsPrompts
mr githubGitHub connections for GitHub promptsGitHub Prompt
mr prompt-repoGitHub prompt repositories and tracked filesGitHub Prompt
mr trafficRequests, metrics and CSV exportTraffic
mr api-tokenAPI key details (never the key itself)API Tokens
mr budget EnterpriseBudgets, alerts, model caps, overrides and requestsBudgets
mr agent EnterpriseAgents issued from the PortalAgents
mr organization EnterpriseOrganizationsOrganizations
mr invite EnterpriseInvitationsInvites
mr sso EnterpriseSingle sign-on settingsSSO
mr machine-identity EnterpriseIssuers and bindingsMachine Identity
mr profileLocal profilesInstalling the CLI
mr skillThe agent skillAgent Skill

Examples

bash
mr router list --kind static --human
mr router get --router-id rt_5Tc7Hn1GsR
mr router disable --router-id rt_5Tc7Hn1GsR
mr catalog model list --publisher anthropic --provider bedrock
mr traffic requests --limit 20 --status 5xx
mr traffic export --output-file traffic.csv

Output

Commands print JSON in the same shape as the API, which suits scripts and agents. Add --human for a readable table where one is available. A list prints {organization_id, data: [...], next_cursor, has_more}; pass next_cursor back with --cursor to read the next page.

Shared options

OptionMeaning
--profile NAMEUse this profile instead of the default.
--humanReadable output instead of JSON.
--body-file FILESend the request body from a file, or from standard input with -. For mr prompt create and mr prompt edit it is the prompt text; use --body-json-file for a JSON body.
--if-match ETAGChange an object only if it is still at this version, such as '"2"'. When it is left out, the CLI reads the current version first for most objects.
--dry-runAsk Multi-Router to check a change without applying it. The request is still sent with your key, so it needs the same access as the change. Available on many changes.
Deletes are permanent
Commands that delete, such as mr router delete, act immediately. Some require an extra confirmation option, such as --confirm-delete, so they cannot run by accident.
Agent SkillOverview
Was this helpful?