agentc
GitHubagentc-sh/agentc
agentc
GitHubagentc-sh/agentc
›Introduction
Get started›Concepts in 5 minutes›Build your first agent›Add your first tool›Serve and connect
Concepts›Architecture overview›The manifest›The compilation pipeline›Archetypes›The graph›Tools and capabilities›Runtime libraries›Skills›Agents and prompts›Serving and protocols›Observability
Guides›Author a manifest›Write a tool›Give your agent a filesystem›Control network egress›Connect external tools via MCP›Connect agents via A2A›Use the bash tool›Control tool access with capabilities›Write templated prompts›Manage prompts with Langfuse›Pass context from the client›Configure a model provider›Connect a CopilotKit frontend›Deploy a standalone binary›Deploy with Docker and PostgreSQL›Instrument with OpenTelemetry›Extend code generation with blocks
Reference
Manifest
Runtime
Standard library
Filesystem
HTTP
›JavaScript
›Observability

HTTP

The HTTP client the runtime provides to component code.

The agentc HTTP library makes outbound HTTP requests. Every request passes the rules the runtime was configured with, and component code cannot go around them.

Availability
TypeScript
agentc:http

The runtime provides agentc:http to every TypeScript component it executes.

What the runtime controls

The rules apply to the initial request, to every redirect hop, to the response head, and to every address a host name resolves to. A permitted host name that resolves into a refused address range is refused. A refusal is an ordinary error the calling code can catch, and the message names the rule that refused it. See network for the configuration surface.

Addresses

Loopback, private, and link-local addresses are refused unless the corresponding category is permitted. Loopback covers addresses such as 127.0.0.1. Private covers RFC 1918 private network ranges. Link-local covers link-local addresses, including the cloud instance metadata address.

Limits

  • A connect timeout limits how long the client waits to establish a connection.
  • A read timeout limits how long the client waits between response body chunks.
  • A whole-request deadline limits the full request lifetime.
  • A redirect limit caps how many redirect hops a request may follow.
  • A response body limit caps how many bytes may be read from the response body.
  • A concurrency limit caps how many requests may be in flight at once.

See network for the configured defaults.

Absent by design

There is no cookie store, no proxy discovery from the environment, and no referer forwarding across redirects.

Bindings

See TypeScript for every export of agentc:http.

← PreviousTypeScriptNext →JavaScript

© 2026 pogue.dev. All rights reserved.

Creative CommonsCC BY 4.0
On this pageWhat the runtime controlsAddressesLimitsAbsent by designBindings

Search docs

Search the agentc documentation