From 386884cf1f0c396d891a53547ae1a7758c341fc6 Mon Sep 17 00:00:00 2001 From: Mplan Date: Tue, 23 Jun 2026 23:03:12 +0800 Subject: [PATCH] docs: update installation instructions and version in README --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 61b1205..a107b77 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,48 @@ Generate **Conventional Commits** messages, pull request descriptions, code revi --- +## Installation + +`gai` runs on the [Bun](https://bun.sh) runtime. Install Bun first if you don't have it: + +```bash +curl -fsSL https://bun.sh/install | bash +``` + +Then install `gai` globally from npm: + +```bash +# npm +npm install -g @mplan/gai + +# Bun +bun add -g @mplan/gai +``` + +Or run it once without installing: + +```bash +bunx @mplan/gai +# or +npx @mplan/gai +``` + +After installing, the `gai` command is available everywhere. Run `gai config` to set your API key, then `gai` to open the interactive menu. + +
+From source (development) + +```bash +git clone https://git.catpl.top/Mplan/gai.git +cd gai +bun install +bun link # makes `gai` point to your local checkout +``` + +
+ +--- + ## Features - **🤖 AI Commit Messages** — generate Conventional Commits from staged diffs with project context @@ -121,7 +163,7 @@ git diff | gai suggest branch Run `gai` without arguments to open the mole-style interactive menu: ``` - gai v0.1.3 + gai v0.1.4 AI-powered git helper for commits, PRs, reviews, and changelogs ────────────────────────────────────────────────────────────────────────