Exa websearch returns 402 Payment Required #8439

Closed
opened 2026-02-16 18:09:58 -05:00 by yindo · 8 comments
Owner

Originally created by @dhruvkej9 on GitHub (Feb 3, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Exa-backed websearch consistently fails with HTTP 402 (Payment Required) even though OPENCODE_ENABLE_EXA=true is set. It previously worked without issues. The tool returns only Search error (402): Request failed with status code 402 without response body details.

Plugins

oh-my-opencode@latest, opencode-antigravity-auth@latest, @franlol/opencode-md-table-formatter@0.0.3, @mohak34/opencode-notifier@latest

OpenCode version

1.1.49

Steps to reproduce

  1. Set OPENCODE_ENABLE_EXA=true in the environment.
  2. Run any websearch query (e.g., "test").

Screenshot and/or share link

N/A

Operating System

Ubuntu 24.04.3 LTS (WSL)

Terminal

tmux (tmux-256color)

Originally created by @dhruvkej9 on GitHub (Feb 3, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Exa-backed `websearch` consistently fails with HTTP 402 (Payment Required) even though `OPENCODE_ENABLE_EXA=true` is set. It previously worked without issues. The tool returns only `Search error (402): Request failed with status code 402` without response body details. ### Plugins oh-my-opencode@latest, opencode-antigravity-auth@latest, @franlol/opencode-md-table-formatter@0.0.3, @mohak34/opencode-notifier@latest ### OpenCode version 1.1.49 ### Steps to reproduce 1. Set `OPENCODE_ENABLE_EXA=true` in the environment. 2. Run any `websearch` query (e.g., "test"). ### Screenshot and/or share link N/A ### Operating System Ubuntu 24.04.3 LTS (WSL) ### Terminal tmux (tmux-256color)
yindo added the bug label 2026-02-16 18:09:58 -05:00
yindo closed this issue 2026-02-16 18:09:58 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 3, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11980: Exa websearch returns 402 Payment Required
  • #11979: Exa websearch returns 402 Payment Required

These issues report the same HTTP 402 error with Exa-backed websearch. Feel free to ignore if your specific case differs.

@github-actions[bot] commented on GitHub (Feb 3, 2026): This issue might be a duplicate of existing issues. Please check: - #11980: Exa websearch returns 402 Payment Required - #11979: Exa websearch returns 402 Payment Required These issues report the same HTTP 402 error with Exa-backed websearch. Feel free to ignore if your specific case differs.
Author
Owner

@tamdrashtri commented on GitHub (Feb 4, 2026):

i have the same error. escalating it

@tamdrashtri commented on GitHub (Feb 4, 2026): i have the same error. escalating it
Author
Owner

@TsurumaruTsuyoshi commented on GitHub (Feb 4, 2026):

Reason found. OpenCode UA + Exa MCP = 402.
Try:

curl -X POST "https://mcp.exa.ai/mcp" -H "Content-Type: application/json" -H "Accept: application/json,text/event-stream" -H "User-Agent: opencode/1.0" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"web_search_exa","arguments":{"query":"test","numResults":1}}}'
@TsurumaruTsuyoshi commented on GitHub (Feb 4, 2026): Reason found. OpenCode UA + Exa MCP = 402. Try: ``` curl -X POST "https://mcp.exa.ai/mcp" -H "Content-Type: application/json" -H "Accept: application/json,text/event-stream" -H "User-Agent: opencode/1.0" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"web_search_exa","arguments":{"query":"test","numResults":1}}}' ```
Author
Owner

@JakubHojsan commented on GitHub (Feb 4, 2026):

Hey! Exa (team and I) are looking into this.

@JakubHojsan commented on GitHub (Feb 4, 2026): Hey! Exa (team and I) are looking into this.
Author
Owner

@R44VC0RP commented on GitHub (Feb 4, 2026):

Reason found. OpenCode UA + Exa MCP = 402. Try:

curl -X POST "https://mcp.exa.ai/mcp" -H "Content-Type: application/json" -H "Accept: application/json,text/event-stream" -H "User-Agent: opencode/1.0" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"web_search_exa","arguments":{"query":"test","numResults":1}}}'

I tried this and it seems to resolve fine, is this still an issue for you?

@R44VC0RP commented on GitHub (Feb 4, 2026): > Reason found. OpenCode UA + Exa MCP = 402. Try: > > ``` > curl -X POST "https://mcp.exa.ai/mcp" -H "Content-Type: application/json" -H "Accept: application/json,text/event-stream" -H "User-Agent: opencode/1.0" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"web_search_exa","arguments":{"query":"test","numResults":1}}}' > ``` I tried this and it seems to resolve fine, is this still an issue for you?
Author
Owner

@JakubHojsan commented on GitHub (Feb 4, 2026):

We just resolved! More traffic than expected :)

@JakubHojsan commented on GitHub (Feb 4, 2026): We just resolved! More traffic than expected :)
Author
Owner

@JakubHojsan commented on GitHub (Feb 4, 2026):

We will continue to monitor MCP usage here.

@JakubHojsan commented on GitHub (Feb 4, 2026): We will continue to monitor MCP usage here.
Author
Owner

@TsurumaruTsuyoshi commented on GitHub (Feb 4, 2026):

It works now, thanks!

@TsurumaruTsuyoshi commented on GitHub (Feb 4, 2026): It works now, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8439