Managing Postman became painful so I tried migrating to Bruno — VSCode integration, Git management, and secret management
ちょっと話題の記事

Managing Postman became painful so I tried migrating to Bruno — VSCode integration, Git management, and secret management

I got tired of managing Postman collections, so I migrated to "Bruno," an API client that supports file-based Git management. I'll summarize the setup steps, including VSCode integration, secret management, and automatic .bru file generation using Claude Code.
2026.06.26

This page has been translated by machine translation. View original

Introduction

Postman is the standard tool for API testing, but using it for a long time causes subtle frustration.

  • Collections from Project A and Project B get mixed together in Postman's UI
  • Sharing collections with team members requires a Postman account
  • Even when managing exported JSON with Git, diffs are hard to read

I recently tried an open-source API client called Bruno, and it solved all these problems cleanly, so I'll summarize the setup steps here.

スクリーンショット 2026-03-09 10.54.00

What's Good About Bruno

API collections are self-contained per project

In Bruno, collections are placed as .bru files inside the project folder. Unlike Postman, where all project collections get mixed into a single app, a natural 1:1 correspondence of project = collection is achieved.

Can be managed and shared with Git

.bru files are plain text, so Git diffs are easy to read and can be reviewed in PRs. When a new member does git clone, they immediately have an API testing environment ready. There's no need for Postman account invitations or the hassle of exporting/importing.

スクリーンショット 2026-03-09 10.55.41

No account required, works offline

Bruno has no cloud sync. No login or subscription is needed. It runs entirely locally even in unstable network environments.

Prerequisites & Environment

Item Version
macOS 15.x
Bruno Desktop 1.x (latest at time of writing)
VSCode 1.9x
Bruno VSCode Extension Latest at time of writing

Setup Steps

Step 1: Install the Bruno Desktop App

Download and install the desktop app from the Bruno official website.

On macOS, you can also install it via Homebrew:

brew install bruno

SCR-20260626-mfpq

Step 2: Install the VSCode Extension

Search for Bruno in the VSCode extension marketplace and install it.

This extension enables syntax highlighting for .bru files in VSCode, and allows you to right-click a collection folder and select "Open with Bruno" to launch the desktop app.

スクリーンショット 2026-03-09 10.58.49

Step 3: Create a Collection

Create a .bruno/ directory in the project root and place the collection configuration file inside. The final directory structure will look like this:

my-project/
├── .bruno/
│   ├── bruno.json              ← Collection settings
│   ├── collection.bru          ← Variables/secrets (.gitignore)
│   ├── collection.example.bru  ← Template (managed with Git)
│   ├── list-users.bru          ← GET request
│   └── create-user.bru         ← POST request
├── src/
│   └── ...
└── .gitignore

Now let's create each file one by one.

mkdir .bruno

bruno.json (Collection Settings)

{
  "version": "1",
  "name": "My API Collection",
  "type": "collection",
  "ignore": ["node_modules", ".git"]
}

collection.bru (Collection Variables)

vars:pre-request {
  base_url: https://api.example.com
  api_token: your-token-here
}

Since collection.bru may contain sensitive information such as API tokens, add it to .gitignore:

.bruno/collection.bru

It's helpful for team members to have an empty template ready under a different name:

# collection.example.bru
vars:pre-request {
  base_url: https://api.example.com
  api_token:
}

Step 4: Create Request Files

Inside the .bruno/ directory, create .bru files with one file per request.

Example GET Request

meta {
  name: list-users
  type: http
  seq: 1
}

get {
  url: {{base_url}}/users
  body: none
  auth: bearer
}

auth:bearer {
  token: {{api_token}}
}

Example POST Request

meta {
  name: create-user
  type: http
  seq: 2
}

post {
  url: {{base_url}}/users
  body: json
  auth: bearer
}

auth:bearer {
  token: {{api_token}}
}

body:json {
  {
    "name": "Test User",
    "email": "test@example.com"
  }
}

Key points:

  • Use {{variable_name}} to reference variables from collection.bru
  • Set up token authentication with the auth:bearer block
  • Write the JSON body in the body:json block
  • Control the display order in Bruno with seq

Step 5: Run Requests

Right-click the .bruno folder in VSCode and select "Open with Bruno" to open the collection in the Bruno desktop app. Click each request and hit "Send" to execute it.

スクリーンショット 2026-03-09 11.00.29

Tips for Managing Secrets and Variables

Exclude collection.bru from Git

As mentioned earlier, add collection.bru, which contains actual token values, to .gitignore. Instead, commit collection.example.bru and provide setup instructions in the README or similar:

cp .bruno/collection.example.bru .bruno/collection.bru
# Open collection.bru and fill in your own token

Bonus: Auto-generate .bru files with Claude Code

Through this setup process, I also created a custom Claude Code skill called /bruno. It's a skill that reads API calls in source code and automatically generates the corresponding .bru files.

How to use:

/bruno scripts/contentful.py

With just this, it analyzes HTTP requests in the specified Python file and generates all the appropriate .bru files. It eliminates the need to manually copy URLs, headers, and bodies one by one.

The skill definition is available at generate-bruno-files, so you can customize it to fit your own project.

Install with gh

gh skill install oharu121/skills generate-bruno-files

Honest Impressions

Bruno is not a complete replacement for Postman. Advanced test automation, mocking, and monitoring features available in Postman are not in Bruno. Postman also has an edge in UI polish.

However, for my use case — wanting to quickly hit project-specific APIs to check things and share that with the team — Bruno was clearly the better fit. Being file-based and Git-managed is genuinely convenient. Being able to review "add the .bru file for this endpoint too" in a PR is a surprisingly welcome feature.

I never want to go back to the days of staring at Postman's left sidebar thinking "wait, which project does this belong to?"

Summary

  • Bruno solves Postman's problem of "collections being tied to the app"
  • .bru files are plain text, making Git management easy
  • Secrets can be managed safely with the collection.bru + .gitignore + collection.example.bru pattern
  • Bruno can be launched with a right-click via the VSCode extension
  • .bru file generation can be automated with a Claude Code custom skill

Share this article