Agent access
How your agent connects to Martina. Sign in from your agent or use a personal key, pick a product or all products, re-authenticate, disconnect agents, revoke keys and run several agents.
Your agent reaches Martina at https://getmartina.com/api/mcp. It can connect in two ways: by signing in to Martina from your browser (recommended), or with a personal key. Both give your agent the same access to your Martina team. Neither lets it see your password or payment details.
Sign in or use a key
On the Connect page, pick your agent (Claude Code or Codex), then choose how it connects:
| Sign in (recommended) | Use a key | |
|---|---|---|
| What you copy | A command with no key in it | A command (Claude Code) or a config snippet (Codex) with your key |
| How it connects | Your agent opens Martina's sign-in in your browser; you choose Allow | The key goes with every request |
| Products | You pick one product, or all of them | Works for all your products |
| To stop it | Disconnect under Signed-in agents | Revoke under Your keys |
The exact commands are in Connect Claude Code and Connect Codex.
Signing in
When your agent starts the sign-in, your browser opens Martina. If you aren't signed in to your dashboard yet, sign in first: Continue with Google, or get a sign-in link by email. Then a page titled "Connect (your agent) to Martina" says what the agent will be able to do (use your Martina team: read and update your marketing brain, plan your teammates' work and report what they do) and which account you're signed in as.
- One product: the page names it.
- Several products: under Which product should this agent work on? pick one, or All my products ("The agent names the product each time").
Choose Allow to connect, or Cancel. Signed in with the wrong account? Choose Not you? Sign in with another account. Your agent stays signed in after that.
Signing in again
If Martina asks your agent to sign in again:
- Claude Code: type
/mcp, choose martina and pick Re-authenticate. - Codex: run
codex mcp login martina.
That happens when the sign-in was disconnected on the Connect page or has expired. Your agent then sees: "This Martina sign-in or key expired or was revoked. Sign in again, or reconnect at …"
Using a key
Choose Use a key, then Create my key. The key starts with mk_live_ and is shown only once, inside the command or snippet: copy it right away. Later visits can't show it again, so you create a new key instead (old keys keep working until you revoke them).
You can have up to 5 active keys. A key works for all your products: when you have several, your agent names the product each time.
Your agents, sign-ins and keys
The Connect page shows:
- Status at the top: connected, the agent app and its last call, or "Not connected yet".
- Your agents: each app you connected, on its own. One sign-in or key used in two apps counts as two agents. Each one shows whether it's signed in or uses a key, for which product, its last hourly check-in (or "no hourly check-in yet", or "can't run an hourly check-in" for apps without scheduled tasks) and its last call.
- Signed-in agents: each sign-in, its product (or "All products") and when it was last used, with Disconnect.
- Your keys: the start of each key and when it was last used, with Revoke.
Disconnecting or revoking takes effect on the agent's next call: it's told to sign in again or reconnect. The agent leaves Your agents, and the products it ran lose their runner, so the next agent that checks in takes them (on Automatic).
Several agents
You can connect as many agents as you like, for example Claude Code on your laptop and Codex on another computer. Each one can do anything you ask it to.
Scheduled work is different: each product's hourly work runs on one agent, so nothing runs twice. With several products, the Your agents list says which products each agent runs, and you choose on the Products page under Runs on: Automatic (the first agent that checks in) or a specific agent. On Automatic, an agent signed in for that one product takes its hourly work over, a newer connection of the same app takes over at once, and any agent takes over once the one running it has been quiet for 3 hours. While an agent you chose under Runs on keeps checking in, other agents leave that product alone. Once it goes quiet (or before its first check-in) it's replaced only by a newer sign-in of the same app (first seen after its last check-in or after you chose it, whichever is later); other agents only do the work that needs no browser, so its browser work waits until you move the product, and the Products page says so. Your choice also ends when that agent's key or sign-in is revoked or expires: the product goes back to Automatic. If the agent you chose only checks in from the cloud (its check-ins on your computer stopped), your choice stays and is treated like a quiet agent: browser work waits, and the Products page says what's missing. Cloud agents aren't offered under Runs on (they have no browser), apart from the one you already chose. Run my team now always goes through, whichever agent runs the product. A cloud check-in that uses the same key as an agent on your computer doesn't change that agent while its computer check-ins keep arriving, and a cloud run and a computer run don't hold each other off.
The Connect page offers commands for Claude Code and Codex. Apps without scheduled tasks (such as Cursor, Windsurf or VS Code) can still do the tasks you ask for, but they can't run the hourly check-in. Set that up in Claude Code or Codex. See Scheduling and check-ins.
When your plan isn't active
Every agent needs an active plan. Without one:
- Your agent says the team is paused, because the last payment failed or the plan ended, with a link to your Billing page.
- The sign-in page says "This account has no active plan", with See plans.
If Martina can't read your plan for a moment (a passing error, not a missing plan), your agent and the sign-in page say "Martina couldn't check your plan just now: try again in a minute" instead.
- Your dashboard says why (Your payment failed, Your plan ended or No active plan), and you can't create keys.
A canceled subscription keeps working until the end of the period you paid for. If a renewal payment fails, the Billing page shows Payment due and your team keeps running for 3 days after your paid period ends: update your card there. If the plan has already stopped, Update card and resume or Renew on your dashboard puts the team back to work. If you paid with a different email, sign out and sign in with that one. See Billing.
Something unclear or out of date? Email hello@getmartina.com.