Skip to content

fix(config): allow fetching agents.md by default - #1121

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-1120
Aug 28, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-1120

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1120

Summary

WebFetch rejected https://agents.md out of the box because the default tools.web_fetch.allowed_domains did not include it, so the tool failed with "domain not allowed" before any request was made. This adds agents.md to the default allowlist so the canonical reference for the AGENTS.md convention this CLI itself follows is fetchable by default.

Changes

  • config/config.go: add agents.md to the default AllowedDomains for WebFetch (host matching is exact or subdomain-suffix, so www.agents.md is covered too)
  • docs/configuration-reference.md: include agents.md in the allowed_domains example

Existing installs pick the new default up automatically since infer init does not write allowed_domains into generated config files.

@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.183.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] WebFetch blocks https://agents.md - not in default allowed_domains

1 participant