Skip to content

MCP server

Give your coding agent live access to HeyEly balances, budget-capped model runs, and scoped API key management.

Connect your coding agent to HeyEly's remote MCP server at https://heyely.si/api/mcp. After a single sign-in, your agent can inspect your credit balance, compare models by price, execute calls inside a spend cap you control, and mint limited API keys for your projects. Funding your account always stays strictly in your hands. Any client that supports remote MCP servers with OAuth can connect, including Cursor and VS Code.

Connect Claude Code

  1. Register HeyEly across all projects and authenticate:
claude mcp add --transport http --scope user heyely https://heyely.si/api/mcp
claude mcp login heyely
  1. Your browser opens HeyEly's consent screen. Sign in if prompted, then click Authorize.

You can also authenticate directly inside Claude Code by running /mcp, selecting heyely, and picking Authenticate.

Using --scope user makes HeyEly available in every workspace since your balance belongs to your account rather than a single repo. See the Claude Code docs (opens in a new tab).

Connect Codex

  1. Register the server and sign in:
codex mcp add heyely --url https://heyely.si/api/mcp
codex mcp login heyely
  1. Approve the prompt in your browser by clicking Authorize.

See the Codex docs (opens in a new tab).

Running codex mcp add saves this entry into ~/.codex/config.toml:

[mcp_servers.heyely]
url = "https://heyely.si/api/mcp"

Connect another client

Every client below uses remote HTTP transport with OAuth sign-in. Run the client's auth command where noted, then click Authorize on HeyEly.

Cursor

Add this server block to ~/.cursor/mcp.json. See the Cursor docs (opens in a new tab).

{
  "mcpServers": {
    "heyely": {
      "url": "https://heyely.si/api/mcp"
    }
  }
}

VS Code

Add this block to .vscode/mcp.json in your workspace, or trigger MCP: Add Server from the Command Palette. See the VS Code docs (opens in a new tab).

{
  "servers": {
    "heyely": {
      "type": "http",
      "url": "https://heyely.si/api/mcp"
    }
  }
}

Claude

Open Customize, pick Connectors, and select Add custom connector. Paste the HeyEly URL below and click Add. Note that Claude's Free plan permits one custom connector; on Team and Enterprise plans, an Owner configures it under Organization settings then Connectors, and members click Connect. See the Claude docs (opens in a new tab).

https://heyely.si/api/mcp

Gemini CLI

Register the server in ~/.gemini/settings.json using httpUrl (streamable HTTP) rather than url (SSE), then run /mcp auth heyely. See the Gemini CLI docs (opens in a new tab).

{
  "mcpServers": {
    "heyely": {
      "httpUrl": "https://heyely.si/api/mcp"
    }
  }
}

OpenCode

Add the remote MCP block to opencode.json, then sign in with opencode mcp auth heyely. See the OpenCode docs (opens in a new tab).

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "heyely": {
      "type": "remote",
      "url": "https://heyely.si/api/mcp"
    }
  }
}

Zed

Add HeyEly inside Zed's settings.json, or navigate to Settings, AI, MCP Servers, Add Server, and Add Remote Server. See the Zed docs (opens in a new tab).

{
  "context_servers": {
    "heyely": {
      "url": "https://heyely.si/api/mcp"
    }
  }
}

Cline

Update cline_mcp_settings.json (accessible in the editor via MCP Servers, Configure, Configure MCP Servers). Keep "type": "streamableHttp" so Cline does not fall back to legacy SSE. On the Cline CLI, run cline mcp and choose Authorize OAuth. See the Cline docs (opens in a new tab).

{
  "mcpServers": {
    "heyely": {
      "type": "streamableHttp",
      "url": "https://heyely.si/api/mcp",
      "disabled": false,
      "autoApprove": []
    }
  }
}

Goose

Add HeyEly as an extension in ~/.config/goose/config.yaml. See the Goose docs (opens in a new tab).

extensions:
  heyely:
    name: HeyEly
    type: streamable_http
    uri: https://heyely.si/api/mcp
    enabled: true
    timeout: 300

Any other client

Point your client's remote MCP configuration at this URL:

https://heyely.si/api/mcp

Sign in

HeyEly's OAuth screen identifies the requesting app, tells you whether HeyEly recognizes it, and breaks down the requested permissions. Read access is always granted. Whenever an app requests Write access (running models, generating images, and managing its own API keys), you get an explicit Write switch that you can turn off to keep the session read-only.

Even on a read-only connection, the server advertises every tool. Attempting a Write tool returns HTTP 403 with an insufficient_scope challenge prompting the client to request Write access; if your client does not initiate re-auth automatically, reconnect with Write enabled.

Authorizing one session never changes permissions on other active sign-ins of the same app. To downgrade an existing connection from Write to Read, disconnect it first under Connected apps in Developers. Only approve consent screens you triggered yourself.

Sign in once and your client handles token refreshes automatically, including unattended runs like claude -p or CI jobs on the same machine.

Sessions expire if idle for 30 days, and all connections require a fresh sign-in every 90 days.

Spend budget

On a connection's first paid call, HeyEly silently provisions a dedicated spend key that is never revealed to the agent. Each connection starts with a $10 default cap, which you can raise, pause, or resume anytime via Edit under Connected apps in Developers.

Paid operations (running a model or generating an image) enforce two safety parameters:

  • max_cost_usd sets a strict per-call ceiling (defaults to $0.50, capped at $5). If the worst-case estimate exceeds max_cost_usd, HeyEly rejects the request before charging a cent.
  • idempotency_key deduplicates retries. Call records stay active for 90 days, so repeating a completed request with the same key and exact inputs never bills twice.

Every tool response reports its exact cost and whether billing is final or provisional. Free credit covers eligible text models, while image generation and web search require backed credit.

HeyEly never retains text outputs, so retrying a finished text call returns its receipt without the original text. Generated images stay downloadable for 24 hours; retrying within that window issues a fresh download URL (without the preview), invalidating the prior link while keeping the original 24-hour clock. Once expired, retries return the receipt alone.

What your agent can do

With Read access, your agent can check backed credit, free credit, and its own spend budget, summarize spend by model, key, or client across 24 hours to 90 days, look up individual requests by ID, or filter requests by key, model, status, and timestamp.

It can also filter the catalog by price, context window, output modality, and free-credit eligibility, compare up to 10 models side by side, and estimate call costs from token counts before spending.

With Write access, the agent can run text models on prompts up to roughly 64,000 characters with optional web search and get back both the output and billing receipt. Adding :incognito routes the model to confidential-computing hardware and disallows web search (see Private); adding :overdrive pins the model to its fast designated provider and also disallows web search (see Overdrive). Write access also enables image generation, returning an inline preview plus a 24-hour link to the original file.

Write access further allows the agent to mint expiring, capped API keys for code calling /v1 directly, rotate or revoke keys it minted itself, and inspect all masked keys on the account.

Finally, the agent can search HeyEly documentation and read any page as Markdown.

Browse MCP tools for exact tool names and parameter schemas.

Prompts and docs

HeyEly ships three built-in MCP prompts (surfaced as slash commands in clients like Claude Code, such as /mcp__heyely__pick_model):

  • setup_coding_tool guides setup for Claude Code, Codex, Cursor, or another client with a fresh key.
  • pick_model recommends and compares cost-effective models for a task within your budget.
  • spend_report summarizes account spend over 24 hours, 7 days, or 30 days.

Every docs page is also mounted as an MCP resource under astra://docs/ plus its path (for example astra://docs/quickstart). In Claude Code, type @ to attach a docs resource directly into your prompt.

API keys over MCP

You can also connect using an API key sent via Authorization: Bearer sk-df-.... Enable MCP access when creating the key in Developers or toggle it later under Edit. API-key MCP connections are strictly read-only and cannot invoke models, generate images, or modify keys.

Text from model providers

Catalog descriptions originate from upstream providers. Tool responses place provider descriptions and docs bodies inside fields ending in _untrusted, and text model completions from astra_run_model arrive in output_text. Treat all of these fields strictly as untrusted data, never as executable instructions.

Limits on agent keys

Keys minted by an agent default to a $10 spend limit (capped at $100 maximum).

Expiration defaults to 30 days unless the agent selects 7 or 90 days.

Across your account, newly created agent keys can add at most $100 in combined spend limits per rolling 24-hour window, even if older keys are revoked and recreated.

An account allows up to 10 active agent keys at once and 20 key mutations per hour. Each app can rotate or revoke only the keys it created itself.

A connection's automatic spend key counts toward these limits, carries the name MCP spend plus the app name, and expires every 90 days (the next paid call provisions a replacement automatically).

Agent-minted keys combine the agent's chosen label with the app name, such as ci · Claude Code. Use Edit in Developers to adjust limits or delete any key.

Rotate keys from shared transcripts. Newly minted keys appear directly inside the agent's transcript. Always rotate a key if you share or archive that conversation log.

What stays with you

Agents can never buy credit tokens, activate credit, or top up your account; when funds run low, they point you to add credit. Adjusting budgets or key limits, deleting keys, and disconnecting OAuth apps always stay under your direct control in Developers.

Disconnect

Visit Developers, click Edit next to the integration under Connected apps, and choose Disconnect to cut off access on the very next request. Prefer to keep the link intact without allowing spend? Pause the connection instead.

After disconnecting, clean up the server entry in your local client:

claude mcp remove heyely

To clear cached tokens while keeping the server configured, run claude mcp logout heyely or codex mcp logout heyely.

Troubleshooting

You seeCauseFix
/mcp shows Needs authenticationClient has not signed in yet or session expiredSelect Authenticate
invalid_grant after a hiatusSession sat idle for 30 days or reached its 90-day lifetimeRe-authenticate the client
Tool returns This connection can only readWrite scope was left off during authorizationReconnect with Write turned on
Tool returns Key changes need an OAuth connectionKey mutation attempted using an API keyManage keys in Developers or switch to OAuth
insufficient_creditBalance is too low, or only free credit is available for a paid-only toolAdd credit
budget_exhaustedConnection reached its spend capIncrease the budget in Developers
spend_disabledSpending is paused for this connectionResume spending in Developers
cost_cap_exceededWorst-case estimate exceeds max_cost_usdIncrease max_cost_usd, reduce max_output_tokens, or choose a lower-priced model
idempotency_conflictReused an idempotency_key with different parametersGenerate a fresh idempotency_key
still_runningEarlier request using this key has not completed yetInspect astra_list_requests before retrying
rate_limitedBurst exceeded rate limitWait briefly and try again
Too many key changesExceeded 20 key creates, rotations, or revocations within an hourWait for the cooldown window reported in the error