GUIDE 02 / 04

Getting Started with Vibe Coding in the CLI

Let’s start with a plain CLI.

Ask a hundred people which tools they use for vibe coding, and you’ll probably get a hundred different answers. After building a few programs, you may start wanting to build a vibe coding tool that suits you better. That’s what happened to me. I actually use one I made myself. It’s not polished enough to share yet, but I wouldn’t be surprised if you end up reinventing your own wheel, too.

Start with the Plain CLI

Still, it’s worth starting with an ordinary CLI. I’ll use Codex CLI, the one I’m most familiar with. Rather than repeat the official installation instructions, I want to explain the ideas I found confusing when I first started.

What’s WSL?

First, it’s useful to know what WSL means. WSL (Windows Subsystem for Linux) lets you run Linux inside Windows.

Things have improved since then, but early on, people often recommended running coding agents in WSL. Many development tools were made with Linux in mind, and I heard agents were more familiar with Linux commands, too. That’s why I still do my vibe coding in WSL.

For day-to-day use, here’s the part you need to understand. Right-click a folder in Windows Explorer and choose “Open in Terminal.” You’ll usually get PowerShell, the Windows terminal. Type wsl to enter a Linux terminal. With Ubuntu installed, you’ll usually be using the Bash shell.

You can access the same folders and files from Windows and Linux. For example, Windows’ C:\Projects\my-app appears as /mnt/c/Projects/my-app in WSL. That’s enough to get started.

If you’re going to keep developing in Linux, though, storing projects inside WSL’s Linux filesystem can be better for performance and compatibility. You’ll also need to install and initialize WSL before using it for the first time.

What’s a Workspace?

Next is the idea of a workspace. For now, just think of it as the folder you’ll be working in.

Suppose you’ve created a folder named my-first-app. Right-click it, open a terminal, type wsl if you’re using WSL, and then type codex if Codex is already installed.

Codex now starts with your current folder as its workspace. You can tell it to “make a program that does this and that,” and the agent will start creating files and writing code.

To try it yourself, open PowerShell and enter:

mkdir my-first-app
cd my-first-app
wsl
codex

When Codex opens, give it this instruction:

Create a simple to-do list webpage in the current folder. Use only HTML, CSS, and JavaScript, and make it run directly in a browser.

A small program like this is a good place to begin.

A Few CLI Commands Worth Knowing

There are a few commands worth knowing when using a CLI coding agent. With Codex, I think these three are enough to start.

CommandWhat it does
/modelSwitch the AI model you’re using.
/statusCheck the current session status and usage information.
/resumeReturn to a previous work session.

Other CLI agents offer similar features, although their commands and behavior may differ. In Codex, you can type / to see the commands available.

That’s already enough to start vibe coding.

Eventually, You’ll Want Your Own Tool

After you’ve built a few programs, you’ll probably want to make your coding tools fit your preferences. For me, saving tokens was the biggest motivation. Cheaper subscriptions don’t always come with generous usage limits. I wanted an arrangement where an expensive model would make the decisions and a cheaper model would do the actual work.

Of course, tools like this already exist. And they’re open source.

Paseo

View on GitHub

A tool for managing several coding agents from one interface. It lets you run different agents and follow up on their work from desktop or mobile.

Orca

Official website

A tool for running and managing several coding agents in parallel, keeping their tasks separate and reviewing the results.

Mixdog

View on GitHub

Worth a look if you want to reduce token usage. Its approach of assigning different models to different roles to balance cost and capability is interesting.

I hope these give you some ideas for inventing a wheel of your own.

Last updated