CaliberHTTP Documentation
Get started in under 30 seconds—no login, no cloud sync, and full compatibility with plain-text .http files.
1. 30-Second Quickstart
- Install CaliberHTTP from the VS Code Marketplace, Open VSX, or download the
.vsixdirectly from GitHub Releases (v1.0.0). - Click the CaliberHTTP icon in the Activity Bar.
- If your workspace already contains
.httpor.restfiles, they appear automatically. Otherwise click Create Starter Collection (api.http). - Click
▶ Send Requestabove any request block—or◫ Open in Studiofor the split visual editor.
2. .http Syntax Reference
### Create User
@name createUser
@base = https://httpbin.org
POST {{base}}/post
Content-Type: application/json
X-Trace-Id: {{$uuid}}
{
"createdAt": "{{$timestamp}}",
"role": "developer"
}
@assert status == 200
@assert latency < 1000
@assert body.$.json.role == "developer"
### Title— Separates requests and names them in the sidebar & CodeLens.@var = value— File-scoped variables.@name stepId— Names a request so later requests can reference{{stepId.response.body.$.field}}or{{stepId.response.headers.x-token}}.@assert target op value— Supportsstatus,latency,header.<name>, andbody.<jsonpath>with==,!=,<,<=,>,>=,contains,exists.
3. Environments & Dynamic Variables
Place a caliber.env.json or .env file in your workspace root and switch active environments from the top Studio bar or status bar:
{
"dev": { "baseUrl": "http://127.0.0.1:3000" },
"staging": { "baseUrl": "https://staging.api.example.com" }
}
Built-in dynamic variables: {{$uuid}} and {{$timestamp}}.
4. Pro Features Guide
- Multi-Step Request Chaining: Run an entire
.httpfile sequentially via▶ Run ChainCodeLens and export JUnit XML, Markdown, or JSON test reports. - Schema Drift Detector: Pin any JSON response as a baseline. Subsequent runs flag removed fields, added fields, or breaking type changes.
- Local
127.0.0.1Mock Server: Start a localnode:httpmock server from any.httpfixture file or OpenAPI 3.0/3.1 JSON spec. - HAR-to-
.httpImporter: Import browser DevTools.harcaptures into clean, deduplicated.httpcollections with automatic{{baseUrl}}extraction. - AES-256-GCM Secret Vault: Encrypt sensitive tokens in
.caliber/vault.encusing PBKDF2-SHA256 + AES-256-GCM so secrets can be safely committed.
5. Polar.sh License Activation & 14-Day Offline Grace
- Purchase a Pro license via Polar.sh ($19 Early Bird / $24 Standard One-Time / $5/mo).
- In VS Code, run command
CaliberHTTP: Activate Pro Licenseand paste your key. - Your key is stored in VS Code's OS-Keychain-backed
SecretStorage. Cached validations remain valid for 72 hours without network calls, with a 14-day offline grace period if you are offline. - Run
CaliberHTTP: Deactivate Licenseanytime to free a machine seat (up to 3 personal machines).