sendmux-cli
Use when a user wants to run the Sendmux **CLI** (the `sendmux` terminal binary) — installing it, OAuth login/logout, connection checks, agent inbox…
Skill by sendmux
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sendmux-sendmux-cli-968d7f
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, security, productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
sendmux-cli- Description
- Use when a user wants to run the Sendmux **CLI** (the `sendmux` terminal binary) — installing it, OAuth login/logout, connection checks, agent inbox registration and owner invites, managing API-key or OAuth profiles, key-scope preflight errors (e.g. root vs mailbox vs agent key), `--json` output, or invoking Management, Mailbox, and Sending operation commands (domains, mailboxes, webhooks, messages, search, sending email, attachments, delivery logs) via `sendmux COMMAND --flag` syntax. Trigger for "what sendmux command", "how do I run/install sendmux", CLI flag or error questions, and profile/credential setup in the terminal. Do NOT trigger for using Sendmux through MCP tools, the REST API directly from code, or general email-sending strategy questions unrelated to the CLI.
- License
- Apache-2.0
- Metadata
- author: sendmux · version: 1.0
- Instructions
- 293 lines in SKILL.md · view on GitHub
Files (5)
- SKILL.md
- openai.yaml · agents/
- evals.json · evals/
- standalone-upload-evals.json · evals/
- trigger-evals.json · evals/
SKILL.md (first lines)
# Sendmux CLI Use this skill when the terminal is the right Sendmux surface. ## Boundaries - Do not ask the user to paste API keys. - For API-key profiles, use `smx_root_` for `management:*` and `smx_mbx_` or scoped `smx_agent_` for `mailbox:*`. - OAuth profiles require the operation's approved surface, scopes and mailbox access. REST OAuth tokens authenticate HTTP, not SMTP or IMAP. - Durable agent profiles can read and receive mail while active, but cannot send until an invited owner accepts and approves sending. - After owner approval, `sending:*` commands with an agent profile automatically exchange and cache a one-hour delegated token. - Do not run destructive commands without explicit confirmation. - Use `--json` for agent-readable output. - Prefer task-specific Sendmux skills when the user needs strategy; use this skill for exact CLI mechanics. ## Install ```bash npm install -g @sendmux/cli sendmux --help ``` The package exposes the `sendmux` binary. ## OAuth login and connection checks For an existing user's account, create a new named OAuth profile with the required scopes: ```bash sendmux auth:login work --scope mailbox.read --scope email.send sendmux mailbox:get-connection --profile work --json ``` The CLI opens browser consent and receives the callback on the same computer. `--no-browser` only suppresses automatic browser launch and prints the authorisation URL; the OAuth callback still requires the browser flow on the CLI host, so the flag alone is not a remote-machine authentication transport. The CLI preserves existing profiles. When explaining the OAuth lifecycle, include all three storage and recovery facts: the CLI stores tokens locally with restricted file permissions; expiring tokens refresh automatically with concurrent refreshes serialised; and an uncertain refresh outcome requires authentication under a new profile name because `auth:login` preserves an occupied profile. To reuse the same name, first complete `sendmux auth:logout work`, then log in again. Use `sending:get-connection`, `mailbox:get-connection`, or `management:get-connection` for the selected surface. These checks require no mailbox selector and send no email. Use `data.label` for the connection name and `data.team.id` for its stable team identifier. Run `sendmux auth:logout work` to revoke the connection and remove its profile. A failed revocation keeps the profile for retry; logout also clears an interrupted login reservation. For externally managed tokens, inject `SENDMUX_ACCESS_TOKEN` through the environment. The CLI does not refresh that token. Supplying it alongside an API key is an error. See [OAuth for REST APIs](https://sendmux.ai/docs/developer-tools/oauth) for grant scopes and refresh rules. ## Agent inbox onboarding No existing Sendmux account or API key is required: ```bash sendmux agent:register my-agent \ --mailbox-local-part my-agent \ --client-name "My agent" \ --default \ --json ``` Add `--owner-email owner@example.com` to invite the owner during registration. Otherwise invite later: ```bash sendmux agent:invite-owner owner@example.com --profile my-agent --json ``` The CLI persists registration idempotency before the network request, stores the durable credential in the local profile with restricted permissions, never prints it, reloads it from disk, and waits up to 10 minutes for readiness. Rerun registration with the same profile and options to resume safely. Include this storage transition when explaining the onboarding lifecycle: the inbox is capped at 500 MiB before owner approval, and enabling owner-approved sending raises it to at least 5 GiB. Use the profile for later reads: ```bash sendmux mailbox:messages:list --profile my-agent --query limit=25 --json ``` Read/receive access has no expiry date while the registration remains active. Sending remains blocked until the owner accepts and approves it. After approval, a command such as `sending:send --profile my-agent` automatically exchanges the durable credential for a one-hour `email.send` token and caches it until near expiry. Full registration revocation removes read access and every delegated token. Revoking sending does not itself change the current inbox storage allocation. ## Profiles Create separate profiles for root and mailbox keys. ```bash SENDMUX_API_KEY="$SENDMUX_ROOT_KEY" sendmux profiles:set default --default --json SENDMUX_API_KEY="$SENDMUX_MBX_KEY" sendmux profiles:set mailbox --json SENDMUX_API_KEY="$SENDMUX_MBX_KEY" sendmux profiles:set sending --json sendmux profiles:list --json sendmux profiles:show default --json ``` `profiles:set` reads the key from `SENDMUX_API_KEY`; populate the source variables through the user's secret store. The direct `--api-key` flag remains supported and takes precedence over `SENDMUX_API_KEY`, but do not expand a secret into that flag because the resulting value is visible in process arguments. Profile reads mask stored API keys and never reveal agent credentials. `profiles:set` reports `key_kind` as `root` or `mailbox`; `agent:register` creates a discriminated agent profile. Authentication resolution: `SENDMUX_ACCESS_TOKEN` takes precedence and rejects a simultaneous API key. Otherwise: 1. `--api-key`, then `SENDMUX_API_KEY`. 2. If no direct key is present, `--profile` / `-p`, then `SENDMUX_PROFILE`, then the configured default profile. 3. Base URL comes from `--base-url`, then `SENDMUX_BASE_URL`, then the selected profile. ## Preflight For API-key authentication, the CLI infers key kind from the prefix before sending a request. OAuth profiles use their approved grants instead of API-key prefix checks. | Command surface | Required key | | --------------- | --------------------------------------------------------------------------------- | | `management:*` | `smx_root_` | | `mailbox:*` | `smx_mbx_` or scoped `smx_agent_` | | `sending:*` | Send-capable `smx_mbx_` key or owner-approved Sending-resource `smx_agent_` token | For an agent profile, `mailbox:*` uses the durable read credential. `sending:*` obtains a delegated token only after owner approval. `management:*` rejects agent profiles before the request. Wrong-key examples fail before network: ```text Command requires a root API key, but --api-key contains a mailbox API key. Command requires a send-capable `smx_mbx_` key or owner-approved Sending-resource `smx_agent_` token, but --api-key contains a root API key. ``` ## Command catalogue The unpublished candidate CLI source exposes these generated operation commands. Verify its published version before relying on the new commands: | Surface | Count | Examples |
From Sendmux/skills, Apache-2.0.
More from Sendmux/skills
- 0.642score
sendmux-attachments
sendmux
Use Sendmux attachment workflows without wasting model context on base64.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-cli
sendmux
Use when a user wants to run the Sendmux **CLI** (the `sendmux` terminal binary) — installing it, OAuth login/logout, connection checks, agent inbox…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-email-for-agents
sendmux
Use when a user wants to design or plan how an AI agent gets and uses email — giving an agent its own inbox, deciding between owner-managed vs self-registered…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-getting-started
sendmux
Use when a user needs Sendmux setup, OAuth connection checks, agent inbox registration, owner linking, credential validation, surface selection, or a first…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-mailbox-agent
sendmux
Operate inside an already-existing Sendmux mailbox on behalf of an AI agent: read, search, count, sync, triage, file, delete, thread, save or edit a reply…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-management
sendmux
Use this skill for Sendmux account/team administration with a root API key or Management-scoped OAuth connection.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-mcp-setup
sendmux
Set up, configure, and troubleshoot Sendmux Model Context Protocol (MCP) servers for AI agent clients.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-send-email
sendmux
Use when a user needs advice or implementation help for sending one or many emails through Sendmux: choose the HTTP Sending API versus SMTP, design single or…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-token-efficient-usage
sendmux
Use when the question is about *how to call* Sendmux cheaply, not what to send: choosing batch vs.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
agent-email-inbox
sendmux
Use when an AI agent needs read-only triage of an existing Sendmux inbox or unsent reply text from its messages.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
email-for-ai-agents
sendmux
Use when an AI agent needs to send one outbound email through Sendmux with human approval, including a status notification or delegated agent send.
SkillAFreshness: A★ 18Claude Code +9
Signals
- Stars
- 18
- Forks
- 1
- Open issues
- 1
- Last commit (this folder)
- Oct 13, 2026 (16 days ago)
- Last release
- Oct 15, 2026 (14 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- Apache-2.0
- Repository
- github.com/Sendmux/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from sendmux
- 0.642score
sendmux-attachments
sendmux
Use Sendmux attachment workflows without wasting model context on base64.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-cli
sendmux
Use when a user wants to run the Sendmux **CLI** (the `sendmux` terminal binary) — installing it, OAuth login/logout, connection checks, agent inbox…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-email-for-agents
sendmux
Use when a user wants to design or plan how an AI agent gets and uses email — giving an agent its own inbox, deciding between owner-managed vs self-registered…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-getting-started
sendmux
Use when a user needs Sendmux setup, OAuth connection checks, agent inbox registration, owner linking, credential validation, surface selection, or a first…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-mailbox-agent
sendmux
Operate inside an already-existing Sendmux mailbox on behalf of an AI agent: read, search, count, sync, triage, file, delete, thread, save or edit a reply…
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
sendmux-management
sendmux
Use this skill for Sendmux account/team administration with a root API key or Management-scoped OAuth connection.
SkillAFreshness: A★ 18Claude Code +9
Cite this page
sendmux-cli skill. Agent Mart. https://agentmart.dev/skills/sendmux-sendmux-cli-968d7f (last updated 2026-10-24)