cli

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GoCode

A Claude Code style AI coding assistant for your terminal, written in Go. You bring your own Anthropic API key and pick the Claude model you want.

1. Install

Copy one line into your terminal.

Mac or Linux

curl -fsSL https://raw.githubusercontent.com/saurabh-sol/cli/main/install.sh | sh

Windows (open PowerShell)

irm https://raw.githubusercontent.com/saurabh-sol/cli/main/install.ps1 | iex

That's it. Nothing else to install. If you prefer, download a file from the Releases page instead.

2. Get an API key

  1. Go to https://console.anthropic.com/settings/keys
  2. Click "Create Key" and copy it (it starts with sk-ant-).

You pay Anthropic for what you use. There is no other cost.

3. Run it

Open a terminal in your project folder and type:

gocode

The first time it will:

  1. Ask for your API key. Paste it and press Enter.
  2. Show a list of models. Type a number, or press Enter for the default.

Then just type what you want, for example:

> explain this project
> add a login page
> fix the failing tests

GoCode reads and edits files and runs commands for you. Before it runs a command or changes a file it asks you:

[y] yes   [a] always for Bash this session   [n] no

Useful commands

Type this What it does
/model Switch to another Claude model
/key Change your API key
/clear Start a new conversation
/cost See how much this session has cost
/auto Stop asking for permission (turn on or off)
/help See all commands
/exit Quit
!ls Run any shell command yourself (put ! in front)

Press Ctrl+C to stop a reply that is taking too long.

Problems?

What you see What to do
Authentication failed (401) Your key is wrong. Type /key and paste it again.
Model not found (404) Type /model and pick one from the list.
gocode: command not found Close the terminal and open a new one.
Strange characters or no colors On Windows use Windows Terminal (free in the Microsoft Store).
Windows warns about an unknown app Click "More info", then "Run anyway".

Want more detail?

Everything else (building from source, config file, all tools, Windows notes, how releases work) is in docs/REFERENCE.md.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL