OP
AboutPricingDashboard
Back to blog
HermesHermes/June 10, 2026

Set up OP for Hermes agents

Install the OP plugin for Hermes, connect a webhook endpoint, restart the gateway, and send the first SMS from the Hermes CLI.

Install and configure OP

hermes plugins install JoshMayerr/hermes-op-plugin --enable

cloudflared tunnel --url http://localhost:8645

hermes op setup \
  --phone +1HUMAN_NUMBER \
  --webhook-url https://your-tunnel.trycloudflare.com/webhooks/op

hermes gateway restart

Send a text

hermes op send \
  --to +1RECIPIENT_NUMBER \
  --body "hello from Hermes via OP"

What the Hermes plugin gives the agent

The Hermes OP plugin gives a Hermes agent a phone identity it can use from its own runtime. After setup, the agent can send texts through OP and receive inbound events through the webhook URL you provide.

Use the phone number of the human or account owner during setup. The plugin uses that number for OP OTP login and writes the OP environment values Hermes needs.

Expose the webhook before setup

The setup command expects a public webhook URL because OP needs somewhere to deliver inbound messages and status events. Hermes listens locally on port 8645 by default, so the local development tunnel points at http://localhost:8645.

Cloudflare Tunnel is a convenient option during development. In production, replace the tunnel URL with the stable webhook endpoint that Hermes can receive on every day.

Send and then listen for replies

After the plugin is enabled, you can send one-off outbound SMS from the terminal with hermes op send. Hermes also registers OP tools, including op_send_sms, for agent-side use.

For OTP and 2FA flows, keep the same OP number attached to the Hermes agent. That continuity is what makes the number useful for recovery and later sign-ins, not just the first message.

Final step: ask the agent what OP unlocks

After the first message works, give the agent one more instruction. This turns setup into a useful handoff instead of stopping at a successful test SMS.

Read https://www.op.inc/skills.md and https://api.op.inc/docs.

Now tell me what you can do with OP from here.

Include:
- the OP number you are using
- how you can send texts
- how you can receive replies or OTP codes
- whether webhooks or polling make more sense for this project
- whether I should use the shared free number or lease a dedicated number
- any voice-call capabilities that are relevant
- 3 useful next workflows you can handle for me

Before sending real messages to anyone else, ask for my approval.

For the broader setup map, read Set up OP for AI agents.

Related posts

Guides

Set up OP for AI agents

Pick the right OP setup path for Hermes, OpenClaw, Codex, Claude Code, or any CLI agent that needs a phone number.

OpenClaw

Set up OP for OpenClaw agents

Install the OpenClaw OP plugin, expose the local webhook endpoint, and send SMS from the OP CLI.

OP Inc.

Trusted identity for agents.

Why did we start with phone numbers?

Company

  • About
  • Blog
  • Pricing
  • Dashboard

Resources

  • Skills
  • Docs

© 2026 OP

PrivacyTerms