GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — websearch tool missing on Go models unless undocumented env var is set · Issue #40568 · anomalyco/opencode

websearch tool missing on Go models unless undocumented env var is set #40568

New issue
Copy link
New issue
Copy link
Closed
#42630
Closed
websearch tool missing on Go models unless undocumented env var is set#40568
#42630
Copy link
Assignees
kitlangton

Description

@MiracleLex
MiracleLex
opened on Aug 5, 2026
Issue body actions

Description

Problem

Web search works out of the box on OpenCode (Zen, even free) models, but on the Go route the websearch tool doesn't exist at all. It only appears after setting
OPENCODE_ENABLE_EXA=1 (not in docs) and restarting.

Repro

  1. Start opencode with a Go model
  2. Ask it to search the web -> no websearch tool available
  3. export OPENCODE_ENABLE_EXA=1 + restart -> tool appears

Root cause

websearch.ts:79 registers the local tool only when these env vars are set.
On Go there is no provider-hosted search (see comment at websearch.ts:27-31),
so users have no search at all by default.

Expected

Search should be available on all official providers by default, or at least
configurable via a documented setting instead of a hidden env var.

Environment

  • opencode: latest (V2 core)
  • provider: go

Plugins

No response

OpenCode version

1.18.12

Steps to reproduce

Stable reproduction. You can choose one free model and use the websearch tool. Then choose an opencode go model, the websearch tool is disable.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

desktop

Activity

  1. github-actions
    assigned
    kitlangton
    on Aug 5, 2026
  2. github-actions commented on Aug 5, 2026

    @github-actions
    github-actionsBot
    on Aug 5, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be related to existing issues. Please check:

    • Add websearch provider selection to settings UI / config instead of only env var #40028: Covers the broader problem of websearch provider configuration being env-var-only (no UI/config file support) — overlaps with the "hidden env var" aspect of this report
    • docs: mention Exa and Parallel as web search backends #38371: Requests that docs mention the Exa/Parallel env vars — directly related to the undocumented OPENCODE_ENABLE_EXA variable you found

    Your report is distinct in focusing specifically on Go models having no websearch available by default (not even a random hosted provider), so it likely warrants its own fix, but the above issues provide useful context.

  3. opencode-agent commented on Aug 14, 2026

    @opencode-agent
    opencode-agentBot
    on Aug 14, 2026 – with OpenCode Agent
    Contributor
    More actions

    OPENCODE_ENABLE_EXA is documented in both the websearch tool docs and the CLI environment-variable reference:

    • https://opencode.ai/docs/tools/#websearch
    • https://opencode.ai/docs/cli/#environment-variables

    PR #42630 also enables websearch by default for OpenCode Go, so Go users will no longer need to set the variable.

  4. rekram1-node
    closed this as completedin #42630on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kitlangton
    kitlangton

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.