How to give Claude Code its own email inbox

Checked · Markdown

Short answer

Paste the setup message below into Claude Code and it signs itself up to Agentline NZ and asks you to open the confirmation email we send you. To do it yourself instead, run claude mcp add --transport http agentline https://agentline.nz/mcp, then type /mcp inside Claude Code and sign in. Claude Code can then send and read email from its own @agentline.nz inbox, for example to email you when a long job finishes.

Set it up with one message

Copy this message and paste it into a chat with Claude Code:

Read https://agentline.nz/agent-instructions.txt and set yourself up with Agentline NZ, so you have your own @agentline.nz email inbox. Ask me for my email address if you need it.

Claude Code reads our setup instructions, creates the account with your email address. We email you a Confirm link. Until you open it, Claude Code can only check its own account. It can't message anyone, except you (up to 5 a day) if you've already signed in. Until you're on a paid plan, your agent can only email your own verified email address. If you already have an account, it asks you for an API key instead.

Texting is coming soon. Join the texting waitlist and we'll email you when it's ready.

Before you start

  • For the steps below, an Agentline NZ account. No credit card needed to sign up. Start free with an email inbox, or try Starter or Pro free for 7 days.
  • Your @agentline.nz email inbox works straight away. Texting and phone numbers are coming soon.
  • Claude Code installed and signed in.

Or add it yourself

  1. Add the Agentline NZ server. In your terminal, run the command below. It uses the default local scope, which means just you, in the current project.
    claude mcp add --transport http agentline https://agentline.nz/mcp
  2. Pick a different scope if you need one. Add --scope user to use Agentline NZ in all your projects, or --scope project to share it with your team through a .mcp.json file in the project root.
    claude mcp add --transport http agentline --scope user https://agentline.nz/mcp
  3. Sign in. Start Claude Code, run /mcp, choose agentline and follow the steps in your browser to sign in with your Agentline NZ email link. From a shell you can run claude mcp login agentline instead.
  4. Check it works. Ask Claude Code: What's my Agentline NZ email address? It should call the get_my_number tool.

Using an API key instead of OAuth

For CI or headless runs, create a key under Dashboard → API keys and pass it as a header. Anthropic notes that claude -p and Agent SDK runs can't complete an OAuth sign-in, so either sign in interactively first or use a header:

claude mcp add --transport http agentline https://agentline.nz/mcp \
  --header "Authorization: Bearer $AGENTLINE_KEY"

Anthropic says a rejected Authorization header doesn't fall back to OAuth, so a wrong key shows up as an error rather than a sign-in prompt.

Try it

Once it's connected, ask your assistant:

  • "Email me when the test suite finishes, with a one-line summary."
  • "Trigger the booking-confirmation email in staging to my Agentline NZ address and check the wording."

Good to know

  • Adding the same server name twice in the same scope fails. Remove it first with claude mcp remove agentline.
  • Project-scoped servers ask each teammate for approval the first time.

FAQ

Where does Claude Code store the Agentline NZ config?

Local and user scopes are stored in ~/.claude.json. Project scope is stored in .mcp.json in the project root, so don't put an API key in it if you commit that file.

How do I sign out of Agentline NZ in Claude Code?

Run claude mcp logout agentline, or use Clear authentication in the /mcp menu.

What does Agentline NZ cost?

Starter is NZ$29/month and Pro is NZ$79/month, billed in NZ dollars. No credit card needed to sign up. Start free with an email inbox, or try Starter or Pro free for 7 days. You can cancel anytime, and your plan stops at the end of the billing period you've paid for. Refunds follow section 5 of our Terms: fees already paid aren't refunded, except where the Terms or the law say so. Agentline NZ is not GST-registered, so no GST is charged.

When does the inbox work, and can my assistant send texts yet?

Your @agentline.nz email inbox works straight away. Texting and phone numbers are coming soon. To hear when texting is ready, join the waitlist.

Can my assistant send marketing or bulk email?

No. Transactional and assistant messages only: replies, bookings, confirmations, reminders people asked for, and codes. Marketing, promotions, cold messages and bulk messages aren't allowed. See What we don't allow.

Start free · No credit card needed to sign up. Start free with an email inbox, or try Starter or Pro free for 7 days.