http adapter sends a webhook request to an external agent service. The agent runs externally and DarkDuck triggers it via HTTP POST.
When to Use
- Agent runs as an external service (cloud function, dedicated server)
- Fire-and-forget invocation model
- Integration with third-party agent platforms
- Agents running on different machines or in different environments
When Not to Use
- If the agent runs locally on the same machine (use
process,claude_local, orcodex_local) - If you need stdout capture and real-time run viewing
- If you need session persistence managed by DarkDuck
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Webhook URL to POST to |
headers | object | No | Additional HTTP headers |
timeoutSec | number | No | Request timeout |
How It Works
Payload delivery
The request body includes the execution context (agent ID, task info, wake reason).
Request Body
The webhook receives a JSON payload:External Agent Integration
The external agent usesDARKDUCK_API_URL and an API key to call back to DarkDuck:
Unlike local adapters, the HTTP adapter does not inject environment variables. The external agent must be pre-configured with the DarkDuck API URL and a persistent API key.