---
title: "Use CallForMe in opencode"
description: "Add CallForMe to opencode as a remote MCP server in opencode.json. Your terminal agent can then call businesses, handle phone menus, and report back."
url: https://callforme.tel/agents/opencode
updated: 2026-09-29
---

# Use CallForMe in opencode

> Add a callforme entry of type remote with url https://callforme.tel/mcp under mcp in ~/.config/opencode/opencode.json, or run opencode mcp add and choose remote. opencode opens a browser tab once to connect your account. After that, the first real call shows one setup link to add $10.

opencode supports local and remote MCP servers in its config file.

## Install

In `~/.config/opencode/opencode.json` (or `opencode.json` in a project):

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "callforme": {
      "type": "remote",
      "url": "https://callforme.tel/mcp",
      "enabled": true
    }
  }
}
```

Or run `opencode mcp add`, pick **remote**, and paste the URL. Restart opencode.

## Connecting your account

opencode handles MCP OAuth on remote servers. When it connects, it opens your browser to authenticate callforme, or you can run `opencode mcp auth callforme` yourself. A browser tab opens and closes by itself. There's no email, no form and no card. That creates your CallForMe account.

## Your first call

The only other step comes once, the first time your agent places a real call. CallForMe answers with a short setup link like `https://callforme.tel/go/k7m2q`, and your agent shows it to you.

1. Open the link. It shows the exact call about to be placed: who, what number, and the goal.
2. Add $10. Your card is saved and auto-reloads, so you won't see this page again. Creators can claim credit with their email instead.
3. The page says you're done. Tell your agent to continue, and the phone starts ringing.

After that, every chat and every session just calls. If you later add CallForMe to a second agent, its first call link recognizes you (when you're signed in on that browser) and links it to your account in one click, with no second payment. More in [how setup links work](/docs/setup-links).

Want to test it first? Ask your agent to call Maple Street Pizza, a fictional restaurant, at (469) 770-7412. Demo calls are free, with no payment, up to 5 a day.

## If the sign-in step doesn't appear

If opencode never shows a sign-in step, use one of these instead:

- `https://callforme.tel/mcp/open` needs no sign-in. Your agent gets a setup link in each new session unless it saves the `account_key` it receives.
- A personal URL, `https://callforme.tel/mcp/k/<your key>`, or the header `Authorization: Bearer cfm_...`, using a key you create on the [account page](https://callforme.tel/account).

To use a header in opencode, add `"headers": { "Authorization": "Bearer {env:CALLFORME_KEY}" }` to the callforme entry and set `"oauth": false`.

## Try it

Paste this into opencode:

> Call Summit Fitness and cancel my membership under Alex Rivera. Get a confirmation number and the last billing date.

## Related

- [Quickstart](/docs/quickstart)
- [MCP tools reference](/docs/mcp)
- [Pricing](/docs/pricing)
- [Use cases](/use-cases)
- [All agents](/agents)

## FAQ

### opencode opened a browser tab. Why?

That's the one-time connect step. CallForMe uses standard MCP OAuth, and opencode handles it for you. The tab closes by itself and creates your account.

### Can opencode use curl instead?

Yes. With shell access it can follow callforme.tel/skill.md and call the REST API with curl.
