Connect Firecrawl to give an Agent runtime-native web search and page-fetching capabilities.
How Firecrawl fits into Agent Barn
Firecrawl provides web search and page fetching for supported Agent runtimes. Agent Barn can supply its configuration in two ways:
- A platform-wide default configured by the deployment administrator.
- A per-Agent credential that overrides part or all of the platform default.
The platform default is useful when many Agents should use the same self-hosted Firecrawl service. A per-Agent override is useful when an Agent needs a separate Firecrawl Cloud project, quota, API key, or endpoint.
The runtime receives Firecrawl only when Agent Barn can resolve both a non-empty API key and a non-empty Base URL.
Choose a connection path
Platform default
Recommended for self-hosted installations and shared infrastructure
Configure Firecrawl once at the Agent Barn deployment level. Use this path when:
- You operate a self-hosted Firecrawl service
- Most Agents should use the same endpoint
- Firecrawl should be available without configuring every Agent
- Shared quotas and centralized key rotation are acceptable
Per-Agent override
Store a Firecrawl credential directly on one Agent. Use this path when:
- The Agent should use Firecrawl Cloud
- The Agent needs an isolated key or quota
- The Agent must use a different Firecrawl deployment
- You do not control the platform configuration
A per-Agent override is not a Shared Credential. It belongs to that Agent, and must be configured separately for other Agents.
Before you begin
Make sure you have:
- An Agent Barn account with access to the target Organization and Agent
- Permission to update the Agent and manage its secrets
- A Firecrawl API key
- A Base URL reachable from the Agent runtime
- A stopped Agent if you are updating secrets directly through the API
The Agent Barn website may guide you through any required stop, update, and restart sequence.
Configure the platform default
Platform administrators can make Firecrawl available to Agents without adding an individual credential to each one.
1. Choose the Firecrawl endpoint
For Firecrawl Cloud, use:
https://api.firecrawl.devFor an in-cluster Agent Barn Firecrawl deployment, the default service address is typically:
http://firecrawl:3002For another self-hosted deployment, use an address reachable from the Agent runtime pods or containers.
2. Configure the Agent API
Supply both platform settings to the Agent API:
AGENT_FIRECRAWL_BASE_URL=http://firecrawl:3002
AGENT_FIRECRAWL_API_KEY=REDACTEDBoth values are required for the platform default to become effective.
3. Keep the server and client keys aligned
When using Agent Barn’s self-hosted Firecrawl deployment, configure the same expected key for the Firecrawl server, the Agent Barn Agent API, and any runtime that calls Firecrawl.
Agent Barn’s Helm-based deployment accepts a FIRECRAWL_API_KEY deployment value, and passes the corresponding configuration to the Firecrawl service and Agent API.
4. Apply the deployment configuration
Apply the updated deployment using your normal Agent Barn Helm or Helmfile workflow. Restart or roll the affected Agent API and Agent workloads if your deployment does not do so automatically.
Existing running Agents may need to be restarted before they receive the updated runtime configuration.
Create a Firecrawl Cloud API key
Skip this procedure if you already have a compatible self-hosted endpoint and key.
1. Open the Firecrawl dashboard
Sign in to the Firecrawl dashboard and select the project the Agent should use.
2. Create or copy an API key
Copy the project API key. Firecrawl Cloud keys commonly begin with:
fc-3. Record the Cloud Base URL
Use:
https://api.firecrawl.devFirecrawl Cloud authenticates API requests with a bearer token. See the official Firecrawl API documentation for the current provider behavior.
Configure a per-Agent override
Use this procedure to connect one Agent to Firecrawl Cloud or another Firecrawl instance.
1. Open the Agent
In Agent Barn, open the Organization and select the Agent that needs web access.
2. Open the Agent’s integration settings
Navigate to the Agent’s integrations or credential settings and select Firecrawl.
3. Enter the API key
Paste the Firecrawl API key into API key. For example:
fc-REDACTEDThe per-Agent key replaces the platform API key for this Agent.
4. Enter the Base URL
For Firecrawl Cloud, enter https://api.firecrawl.dev. For a self-hosted instance, enter its reachable service origin.
5. Save and restart
Save the credential. Restart the Agent if prompted, so the runtime receives the updated secret and web configuration.
Verify web access
Agent Barn does not currently provide a dedicated Firecrawl credential validator. A validation request may return:
No validator available for firecrawlThis does not prove that the credentials are invalid. Verify the connection by running a web task through the Agent.
Test web search
Send the Agent:
Search the web for the official Agent Barn GitHub repository. Return the repository URL and the source URLs you used. Do not answer from prior knowledge.Test page fetching
Send the Agent:
Fetch https://example.com and return the page title and the first paragraph. Include the source URL.Expected results
A successful test should show that:
- The Agent invokes its runtime web capability
- The request completes without an authentication error
- The response contains current content from the requested source
- The Agent includes the source URL
- Runtime logs do not show a Firecrawl configuration or connectivity error
Tool names and log messages differ between runtimes. Confirm the resulting behavior instead of relying on one exact tool name.
Runtime behavior
OpenClaw
For an OpenClaw Agent, Agent Barn:
- Enables the Firecrawl runtime plugin
- Configures Firecrawl as the web-search provider
- Configures Firecrawl as the web-fetch provider
- Supplies the resolved API key and Base URL
- Requests main page content for fetches
- Uses a web-fetch timeout of approximately 60 seconds
- Allows fetched content to be cached for up to approximately 48 hours
Hermes
For a Hermes Agent, Agent Barn:
- Configures Firecrawl as the web backend
- Configures Firecrawl as the browser cloud provider
- Supplies
FIRECRAWL_API_KEY - Supplies
FIRECRAWL_API_URL - Configures a browser session TTL of approximately 10 minutes
Configuration resolution
Agent Barn resolves the effective Firecrawl configuration independently for the API key and Base URL.
| Platform configuration | Per-Agent credential | Effective result | Status |
|---|---|---|---|
| Platform key and Base URL are set | No Agent credential | The Agent uses both platform values. | Configured |
| Platform Base URL is set | Agent API key with blank Base URL | The Agent uses the Agent key and platform Base URL. | Configured |
| Platform key and Base URL are set | Agent API key and Agent Base URL | The Agent uses both Agent values. | Configured |
| No platform configuration | Agent API key and Agent Base URL | The Agent uses both Agent values. | Configured |
| No platform Base URL | Agent key with blank Agent Base URL | Firecrawl is not configured. | Not configured |
| Platform Base URL with no key | No Agent credential | Firecrawl is not configured. | Not configured |
| Platform key with no Base URL | No Agent credential | Firecrawl is not configured. | Not configured |
The resolved API key and Base URL must both be non-empty.
There is no separate per-Agent disable switch in this credential model. If a platform default exists, removing the Agent override returns the Agent to that default.
Rotate or remove credentials
Rotate a platform key
- Create or select the replacement Firecrawl key.
- Update the Firecrawl server if it validates the shared key.
- Update
AGENT_FIRECRAWL_API_KEYin the Agent API deployment. - Apply the deployment.
- Restart affected Agents.
- Run both verification prompts.
- Revoke the previous key.
Plan the rotation carefully when many Agents share the platform key, because they also share its availability and quota.
Rotate a per-Agent key
- Stop the Agent if required.
- Replace the Firecrawl API key in the Agent’s integration settings.
- Confirm the correct Base URL.
- Save and restart the Agent.
- Run a search and fetch test.
- Revoke the previous key.
Remove a per-Agent override
Remove the Firecrawl credential from the Agent and restart it. After removal:
- The Agent uses the platform Firecrawl configuration if one exists
- Firecrawl becomes unavailable if no complete platform configuration exists
Removing the override does not necessarily remove web access.
API reference
Add or replace a per-Agent credential
PATCH /api/v1/organizations/{organization_id}/agents/{agent_id}
Content-Type: application/json{
"secrets": [
{
"provider": "firecrawl",
"content": {
"api_key": "REDACTED",
"base_url": "https://api.firecrawl.dev"
}
}
]
}The provider identifier must be firecrawl.
To inherit the platform Base URL, submit an empty base_url:
{
"secrets": [
{
"provider": "firecrawl",
"content": {
"api_key": "REDACTED",
"base_url": ""
}
}
]
}Only use this form when the platform Base URL is the intended endpoint.
Remove a per-Agent credential
{
"removed_secret_providers": [
"firecrawl"
]
}Credential validation
Agent Barn currently has no registered validator for Firecrawl. Calling the validation endpoint:
POST /api/v1/organizations/{organization_id}/agents/{agent_id}/integrations/firecrawl/validatemay return HTTP 400 with:
{
"detail": "No validator available for firecrawl"
}Use an Agent runtime search or fetch test as the authoritative verification.
Limits and caching
Firecrawl Cloud applies the quotas, concurrency limits, and credit rules of the selected Firecrawl plan. Review the current Firecrawl documentation and your dashboard before enabling web-heavy workloads.
Consider that:
- Multiple Agents using one platform key share its quota
- Search and page-fetch operations can consume different amounts of capacity
- Concurrent Agent tasks can trigger provider rate limits
- HTTP
429generally indicates rate or concurrency limiting - HTTP
402can indicate insufficient plan capacity or credits - Runtime caching can cause a fetched page to remain unchanged temporarily
- The OpenClaw fetch configuration may reuse content for up to approximately 48 hours
For stricter quota or billing isolation, use separate per-Agent Firecrawl keys.
Troubleshooting
| Symptom | Likely cause | Resolution |
|---|---|---|
| The Agent has no web tool | The resolved API key or Base URL is empty, or the runtime has not restarted | Confirm both values and restart the Agent. |
| Validation returns “No validator available for firecrawl” | Agent Barn has no Firecrawl validator | Run the runtime search and fetch tests instead. |
| HTTP 401 or 403 | The key is invalid, revoked, or does not match the endpoint | Confirm the key and Base URL belong to the same Firecrawl service. |
| A Cloud key fails against an internal URL | The Agent Base URL was blank and inherited the platform URL | Set https://api.firecrawl.dev explicitly on the Agent. |
| Connection refused at localhost | localhost points to the Agent container | Use a service DNS name or reachable network address. |
| HTTP 402 | The Firecrawl Cloud project lacks credits or plan capacity | Review the project’s billing and usage in Firecrawl. |
| HTTP 429 | The project exceeded a rate or concurrency limit | Reduce concurrency, retry with backoff, or increase provider capacity. |
| Requests time out | Firecrawl cannot reach the target, the endpoint is unreachable, or the page is slow | Check runtime-to-Firecrawl networking, Firecrawl logs, DNS, TLS, and target availability. |
| Results appear stale | Runtime fetch caching is active | Retry after the cache period, or verify the source directly. |
| Search works but fetching fails | The target blocks retrieval, or the runtime provider configuration is incomplete | Test another public page and inspect Agent and Firecrawl logs. |
| Removing the credential did not remove web access | The Agent fell back to the platform default | Review the platform Firecrawl configuration. |
| A custom endpoint returns route errors | The Base URL includes an API path | Use only the service origin; remove /v1, /v2, or endpoint suffixes. |
Security considerations
Follow these practices:
- Store Firecrawl keys only in Agent Barn’s secret management or deployment secret store
- Do not commit keys to the public
agent-barnrepository - Use TLS for Firecrawl endpoints reached over untrusted networks
- Restrict access to self-hosted Firecrawl services at the network layer
- Consider whether Firecrawl can reach internal services from its deployment network
- Avoid giving web-enabled Agents unnecessary access to private network endpoints
- Rotate keys regularly, and immediately after suspected exposure
- Use separate keys when Agents require quota or billing isolation
- Remember that a platform-wide key increases the impact of a leak or quota exhaustion
- Review Firecrawl Cloud’s data-processing and retention terms before sending sensitive URLs or queries
- Limit Agent Barn access, because users who can manage Agent secrets can change the Firecrawl endpoint and key
- Do not paste credentials into prompts, conversations, logs, or support messages
Next steps
After Firecrawl is connected:
- Verify both web search and page fetching.
- Review Agent instructions for safe use of untrusted web content.
- Monitor Firecrawl quota, latency, and error rates.
- Decide whether the platform default or isolated Agent keys best fit your workload.
- Continue to Use shared credentials for providers that support centrally managed Organization credentials.