Gurl is curl for the AI era. It gives AI agents a secure, observable, and easily configurable tool for making HTTP requests — with built-in credential isolation, request logging, auth handling, and scripting.

curl for the AI era.

AI agents need to call APIs. Gurl makes that safe and auditable — credentials never touch agent context, every request is logged, and collections are trivially configurable. Works just as well for humans at the terminal.

Features

21 CLI Commands

Every command you need for API workflows: save, run, list, edit, delete, duplicate, export, import, and more.

8 Auth Handlers

Programmatic credential injection for every auth scheme:

Auth TypeUse Case
BasicUsername/password
BearerToken-based
DigestChallenge-response
API KeyHeader or query
OAuth 1.0Signature-based
OAuth 2.0Token flow
AWS SigV4AWS API Gateway
NTLMWindows integrated

5 Protocol Clients

Support for modern API protocols:

Scripting Engine

Extend requests with JavaScript using the goja runtime. Modify headers, transform responses, or chain dependent requests with full access to the request and response objects.

Collection Runner

Run collections with data-driven testing. Feed CSV or JSON test data, assert on response status, body, and headers.

Interactive TUI

Built with bubbletea, the Gurl interface is a first-class terminal citizen. Navigate requests, inspect responses, and manage environments without losing your terminal workflow.

Plugin System

Extend Gurl with middleware for request/response transformation and custom output formatters. Plugins hook into the request lifecycle.

Multi-language Code Generation

Generate idiomatic client code from saved requests:

gurl codegen "my-request" --lang python
gurl codegen "my-request" --lang javascript
gurl codegen "my-request" --lang go
gurl codegen "my-request" --lang curl

Quick Start

brew tap bsreeram08/gurl https://github.com/bsreeram08/gurl
brew install gurl
gurl save "my-api" https://api.example.com/users -H "Authorization: Bearer $TOKEN"
gurl run "my-api"

Save any request, run it instantly, generate code, and share with your team.

Built for AI Agents

They never touch your credentials.

Gurl is designed for AI agent workflows where security matters. Credentials never appear in logs, never leak into prompts, and never get exposed to model providers.

Security model:

See the AI integration page for how Gurl works with AI agents.

Why Gurl