Skip to content

fix(opencode): pass EXA_API_KEY to websearch tool to avoid rate limits#16362

Open
rasdani wants to merge 2 commits intoanomalyco:devfrom
rasdani:pass-exa-api-key
Open

fix(opencode): pass EXA_API_KEY to websearch tool to avoid rate limits#16362
rasdani wants to merge 2 commits intoanomalyco:devfrom
rasdani:pass-exa-api-key

Conversation

@rasdani
Copy link

@rasdani rasdani commented Mar 6, 2026

Issue for this PR

Closes #15953

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds the ability to pass EXA_API_KEY to websearch tool to increase rate limits. @thdxr

Uses https://mcp.exa.ai/mcp?exaApiKey=YOUR_EXA_KEY when the environment variable gets detected.

Documented in: https://exa.ai/docs/reference/exa-mcp#api-key

How did you verify your code works?

I tested it locally and didn't hit any rate limits anymore.

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Hey! Your PR title pass EXA_API_KEYtowebsearch tool doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 6, 2026
@rasdani rasdani changed the title pass EXA_API_KEY to websearch tool fix(websearch): pass EXA_API_KEY to websearch tool Mar 6, 2026
@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@rasdani rasdani changed the title fix(websearch): pass EXA_API_KEY to websearch tool fix(websearch): pass EXA_API_KEY to avoid rate limits Mar 6, 2026
@rasdani rasdani changed the title fix(websearch): pass EXA_API_KEY to avoid rate limits fix(opencode): pass EXA_API_KEY towebsearch to avoid rate limits Mar 6, 2026
@rasdani rasdani changed the title fix(opencode): pass EXA_API_KEY towebsearch to avoid rate limits fix(opencode): pass EXA_API_KEY to websearch tool to avoid rate limits Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is it possible to increase the use of Exa websearch by including an API Key?

1 participant