hermosodocs

Read-only keys

A read-only key can read your reports and data, and it cannot change anything. It cannot post, schedule, edit, delete, change an ad, or spend a single credit. Give one to an agent, a dashboard or a teammate who should look but not touch.

What a read-only key is

Every Hermoso key has an access level, chosen when you create it: Read-only, Member or Admin. A read-only key works on every surface (the MCP server, the CLI and the REST API) and is sent like any other key:

Authorization: Bearer hmk_r_…

Read-only keys begin hmk_r_, so you can tell one apart at a glance. The rule is checked on the server, on every request the key makes, before anything runs. It does not depend on the agent behaving well: a request that would change something or cost credits is refused, whatever tool, command or endpoint sent it.

When to use one

How to create one

  1. In the app, open API, MCP & CLI in the sidebar and go to Terminal & API keys (straight there: app.hermoso.ai/?tab=api-keys, or Settings → API keys).
  2. Press Create API key and give it a label you will recognise.
  3. Choose what it reaches: the Whole account, or One brand (then pick the brand).
  4. Under Access, choose Read-only, then press Create key.

The full key is shown exactly once. Copy it then. The key list marks it Read-only, and you revoke it from the same list. Any person on the account can create a read-only key, because it can do less than they can.

Keys are created in the app, signed in. A key can never create or revoke keys, a read-only key included, so there is no endpoint that takes a key and returns a new one. For an app that connects on a user’s behalf, use OAuth instead (next section).

Read-only over OAuth

A client connecting to https://app.hermoso.ai/mcp with OAuth can ask for a read-only connection by requesting the scope hermoso.read on its own, without hermoso.research or hermoso.generate. The consent page then tells the user the app can only read, and the connection is minted as a read-only key: the token answer echoes hermoso.read, the access token begins hmk_r_, and a refresh stays read-only. A client that asks for the full scopes gets an ordinary connection, exactly as before. The scope is listed in the authorization server metadata at https://app.hermoso.ai/.well-known/oauth-authorization-server.

Using it

For full access in Claude Code you need no key: install with one command, claude plugin marketplace add hermoso-ai/hermoso && claude plugin install hermoso@hermoso. Use the read-only setup below only when the agent should read and change nothing.

# MCP, stdio (Claude Code shown; any client that takes an env var works the same way)
claude mcp add hermoso-readonly -e HERMOSO_TOKEN=hmk_r_… -- npx -y hermoso@0.1.712 mcp

# CLI: from your secret store, nothing written to disk
HERMOSO_TOKEN="$HERMOSO_READ_KEY" hermoso call list_scheduled

# REST API
curl https://app.hermoso.ai/v1/credits -H "Authorization: Bearer hmk_r_…"

To make a read-only key the CLI’s stored login, pipe it to hermoso auth login --token -. The browser sign-in (hermoso auth login) creates a full-access key, so use a key you created as read-only when the machine should only read.

What it can do

Everything that reads and costs nothing, for whatever the key reaches:

What it cannot do

It fails closed. Anything Hermoso adds later is refused for a read-only key until it has been checked and classified as a read, so a new feature can never quietly give one the power to write.

The refusal: 403 key_read_only

A refused request runs nothing and charges nothing. On /api the answer is:

HTTP/1.1 403 Forbidden

{
  "error": "This key is read-only: it can view reports and data, but it cannot post, schedule, change anything or spend credits, so nothing was done. To do that, create a Member or Admin key in the Hermoso app (API, MCP & CLI tab), or connect again with full access.",
  "code": "key_read_only",
  "role": "read"
}

On /v1 the same refusal comes in the API’s error shape:

{
  "error": { "type": "permission_error", "code": "key_read_only", "message": "This key is read-only: …" },
  "request_id": "req_…"
}

Over MCP, the tool call returns an error result whose text begins This key is read-only:. In the CLI, hermoso call prints the same sentence and exits with status 1.

Branch on the code, and do not retry. key_read_only never clears on its own: the request needs a Member or Admin key. An agent should tell its user that the key is read-only and that nothing was changed, not report a failure or try again.

How it compares

AccessReads reports and dataPosts, schedules, runs ads, generatesManages the team and billing
Read-onlyYesNo (403 key_read_only)No
MemberYesYesNo (403 key_member_access)
AdminYesYesYes

A key never has more rights than the person who created it. See what a key cannot do and Errors.