Nifty / Extensions / APIs & debugging
Nifty REST Client
Send HTTP requests from .http files: variables, environments, request chaining, response viewer, cURL import and export, and history. No account, no cloud.
code --install-extension nifty.nifty-rest-client
Works in VS Code, Cursor, Windsurf, VSCodium and in the browser on vscode.dev and github.dev. Free.
Try it without installing anything: cURL to .http
Features



- Requests as plain text. Write requests in
.httpor.restfiles next to your code, commit them with your project, and click Send Request above any of them (Ctrl+Alt+R). The response opens beside the editor. The format is the same one REST Client, httpYac and JetBrains IDEs use, so existing files just work. - Variables and environments. Define file variables (
@baseUrl = https://api.example.com) and switch environments (local, staging, production) from the status bar. Environments come fromhttp-client.env.json(with secrets inhttp-client.private.env.json, which you keep out of git) or from settings, with$sharedvalues for all of them. Values from your.envfile and the process environment are available too. - Chain requests. Name a request with
# @name loginand use its response later:Authorization: Bearer {{login.response.body.token}},{{login.response.body.$.data.items[0].id}}or{{login.response.headers.Location}}. - Dynamic values.
{{$uuid}},{{$timestamp}},{{$datetime iso8601}},{{$randomInt 1 100}},{{$processEnv API_KEY}}and{{$dotenv API_KEY}}. - A clear response view. Status, time and size at a glance, colored and pretty-printed JSON, images shown inline, all headers, and the exact request that was sent (with variables filled in). Copy the body, save it, or open it in an editor.
- cURL both ways. Copy as cURL for any request, and Paste cURL as Request to turn a curl command from docs or DevTools into a request.
- Everything else you need. Request history, a cookie jar so login sessions carry over, GraphQL (
GRAPHQLmethod, query plus variables), body files (< ./payload.json, or<@ ./payload.jsonto fill in variables), multi-line query strings, and# @no-redirect/# @no-cookie-jarper request. - Completion and hover for
{{variables}}, showing their current values. - No account. No cloud. No telemetry. Your requests and secrets stay in your files.
- Works in the browser on vscode.dev and github.dev. Requests go through the browser there, so servers must allow cross-origin requests (CORS), and
$processEnvvariables are empty.
Example
@baseUrl = {{host}}/api
### login
POST {{baseUrl}}/login
Content-Type: application/json
{ "user": "ada", "password": "{{$dotenv API_PASSWORD}}" }
###
GET {{baseUrl}}/orders?limit=10
Authorization: Bearer {{login.response.body.token}}
With http-client.env.json:
{
"local": { "host": "http://localhost:3000" },
"production": { "host": "https://shop.example.com" }
}
Commands
| Command | What it does |
|---|---|
Nifty REST Client: Send Request |
Send the request under the cursor (Ctrl+Alt+R) |
Nifty REST Client: Send Last Request Again |
Repeat the last request (Ctrl+Alt+L) |
Nifty REST Client: Select Environment… |
Switch environment (Ctrl+Alt+E, or the status bar) |
Nifty REST Client: Copy Request as cURL |
Copy with variables filled in |
Nifty REST Client: Paste cURL as Request |
Convert the curl command on the clipboard |
Nifty REST Client: Request History… |
Send a recent request again |
Nifty REST Client: Clear Cookies |
Forget session cookies |
Nifty REST Client: New Request File |
Open a sample .http file |
Settings
| Setting | Default | What it does |
|---|---|---|
nifty.rest-client.environments |
{} |
Environments and their variables ($shared applies to all) |
nifty.rest-client.timeoutSeconds |
60 |
Request timeout (0 waits forever) |
nifty.rest-client.followRedirects |
true |
Follow redirects |
nifty.rest-client.rememberCookies |
true |
Keep cookies between requests |
nifty.rest-client.userAgent |
nifty-rest-client |
Default User-Agent |
nifty.rest-client.historySize |
50 |
Requests kept in history |
nifty.rest-client.keepFocusInEditor |
true |
Keep the cursor in the .http file |