Skip to content

[FEATURE]:add Ninelayer as a web search provider #33209

Closed as not planned
Closed as not planned

Description

@Divyansh3021

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Summary

Add Ninelayer (https://ninelayer.in) as a third local web search provider alongside Exa and Parallel.

Motivation

Ninelayer is an agent-native search engine optimized for AI consumption — structured results,
low token overhead (~1,500 tokens per query), and ~97% first-shot resolution. It exposes a
stateless HTTP endpoint following the same MCP tools/call contract that Exa and Parallel use,
making it a natural fit for the existing websearch provider pattern.

What this adds

  • OPENCODE_ENABLE_NINELAYER=true flag to enable Ninelayer as the search provider
  • NINELAYER_API_KEY env var for authentication
  • OPENCODE_WEBSEARCH_PROVIDER=ninelayer for explicit override
  • Maps the existing type parameter (auto/fast/deep) to Ninelayer's retrieval_mode (balance/focused/explore)

What it does NOT change

  • Exa and Parallel are unaffected
  • No changes to the permission system, agent config, or tool registry
  • Follows the exact same pattern as the existing providers

Testing

Verified end-to-end with the stateless endpoint returning results in ~1.3s round-trip.

Activity

  1. Divyansh3021 commented on Jun 22, 2026

    @Divyansh3021
    Author

    @StarpTech Hi, just following up in case this got buried. Happy to answer any questions or make adjustments to the scope before opening a PR.

  2. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions