Skip to main content

opencode

recommended: observe
Operated by Anomaly ai coding agent

is an open-source AI coding agent that helps developers write code from the terminal, IDE, or desktop, supporting multiple LLM providers and local models. AI Coding Agent Fetches documentation and other resources to help build software

What it does

AI coding agents are autonomous programs that browse websites to gather information needed to complete software development tasks. They fetch documentation, API references, code examples, changelogs, and technical guides to assist with writing, debugging, or refactoring code. Unlike general AI agents, their browsing is focused on technical content and driven by specific coding objectives. Request patterns vary based on the complexity of the development task and may involve fetching multiple pages from documentation sites in quick succession.

How to identify it

User-agent contains any of:

  • opencode
  • opencode-smartfetch

Example user-agent string:

opencode-smartfetch/1.0

robots.txt

Well-behaved crawlers honor robots.txt. To control opencode:

Allow full access

User-agent: opencode
Allow: /

Block entirely

User-agent: opencode
Disallow: /

Grey-area scrapers ignore robots.txt. Botscope enforces your policy at the edge or origin regardless — see how →

FAQ

Should I Block opencode?

Generally no. opencode fetches documentation and technical content to help human software engineers write and debug code. Blocking it prevents them from efficiently accessing your technical resources. Allowing opencode also helps developers discover your APIs, libraries, and documentation in the first place.

How Do I Block opencode?

If you want to, you can block or limit opencode's access by configuring user agent token rules in your robots.txt file. The best way to do this is using Automatic Robots.txt, which update automatically as new agents are discovered. While the vast majority of agents operated by reputable companies honor these robots.txt directives, bad actors may choose to ignore them entirely. In that case, you'll need to implement alternative blocking methods such as firewall rules or server-level restrictions. You can verify whether opencode is respecting your rules by setting up Agent Analytics to monitor its visits to your website.

Will Blocking opencode Hurt My SEO?

Blocking AI coding agents is unlikely to directly impact traditional SEO rankings since they don't contribute to search engine indexing. However, if your site hosts technical documentation or other developer resources, blocking these agents could reduce developer engagement and adoption of your tools, which may indirectly affect your site's authority over time.

Does opencode Access Private Content?

AI coding agents typically access publicly available technical content such as documentation pages, API references, code repositories, and developer guides. They generally don't attempt to access private or authenticated content unless explicitly configured with credentials by the developer using them. Their scope is usually limited to technical resources relevant to the coding task at hand.

How Can I Tell if opencode Is Visiting My Website?

Setting up Agent Analytics will give you realtime visibility into opencode visiting your website, along with hundreds of other AI agents, crawlers, and scrapers. This will also let you measure human traffic to your website coming from AI search and chat LLM platforms like ChatGPT, Perplexity, and Gemini.

Why Is opencode Visiting My Website?

opencode visited your site because a developer is using an AI coding tool that identified your content as relevant to their development task. Your site likely contains documentation, API references, code examples, or technical guides that the agent fetched to help the developer write, debug, or understand code.

How Can I Authenticate Visits From opencode?

Agent Analytics authenticates agent visits from many agents, letting you know whether each one was actually from that agent, or spoofed by a bad actor. This helps you identify suspicious traffic patterns and make informed decisions about blocking or allowing specific user agents.

References

See opencode on your own site

Botscope shows every bot and AI agent hitting your site — and lets you allow, challenge, or block each one. Observe first, enforce when you're ready.

Start free — connect in minutes