Skip to content

alo-labs/kay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10,618 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kay

Kay is a terminal coding agent built around local, scriptable, multi-provider workflows.

Its defining difference is first-class provider architecture: credentials, provider selection, and model routing are built into the product instead of being bolted on later.

It carries forward the ergonomics of the Codex CLI lineage and the multi-provider direction from Every Code, but it is its own project with its own release line, UI decisions, and isolated home directory under ~/.kay.

Why Kay exists separately

  • The main reason Kay exists separately is that provider selection, credential management, and model routing are first-class architecture here, not add-ons.
  • Codex gave this project its original CLI and agent workflow shape.
  • Every Code introduced the multi-provider direction and the idea that provider/model support should be a core capability.
  • Kay exists so that architecture can evolve independently without being forced into a rename-only or compatibility-only release model.
  • Kay keeps the upstream lineage visible, but it is not the same project as Codex or Every Code.

What Kay does well

  • Runs as a local coding agent in your terminal.
  • Coordinates multi-step tasks with Auto Drive.
  • Supports browser-driven workflows through internal browser mode or CDP/Chrome.
  • Provides multi-agent commands such as /plan, /kay, /solve, and /auto.
  • Exposes a provider workflow for adding, updating, and removing credentials.
  • Keeps its own state under ~/.kay instead of inheriting a local Codex or Every Code environment.
  • Integrates with MCP tools, custom agents, and safety controls directly in the TUI.
  • Records transcript JSONL so sessions remain inspectable and attributable.

Install

Install Kay from npm:

npm install -g @alo-labs/kay

The primary command is kay. The package also installs codex and coder aliases, and installs the legacy code alias when doing so would not override another code command already on PATH.

Provider credentials you save with kay login are stored in $KAY_HOME/auth.json (defaults to ~/.kay/auth.json), so once configured they work from any directory.

GitHub Releases also provide standalone archives.

  1. Open the latest release: alo-labs/kay releases
  2. Download the asset for your platform:
    • macOS arm64: kay-aarch64-apple-darwin.tar.gz or kay-aarch64-apple-darwin.zst
    • macOS x64: kay-x86_64-apple-darwin.tar.gz or kay-x86_64-apple-darwin.zst
    • Linux arm64 musl: kay-aarch64-unknown-linux-musl.tar.gz or kay-aarch64-unknown-linux-musl.zst
    • Linux x64 musl: kay-x86_64-unknown-linux-musl.tar.gz or kay-x86_64-unknown-linux-musl.zst
    • Windows x64: kay-x86_64-pc-windows-msvc.exe.zip
  3. Extract the archive and run the kay binary. Release assets also include code-* compatibility archives during the migration.

Example for macOS or Linux:

tar -xzf kay-x86_64-apple-darwin.tar.gz
./kay

Example for Windows PowerShell:

Expand-Archive .\kay-x86_64-pc-windows-msvc.exe.zip
.\kay.exe

Getting Started

  1. Launch Kay:

    kay
  2. Set up a provider from inside the TUI with /provider.

    • Add the provider API key for OpenCode Go, MiniMax, or OpenAI.
    • If you prefer to avoid the TUI flow, you can provide the key from the CLI instead:
    kay login --provider opencode-go --api-key <KEY>
    kay login --provider minimax --api-key <KEY>
    kay login --provider openai --api-key <KEY>

    If you want stdin-safe entry:

    printenv OPENCODE_GO_API_KEY | kay login --provider opencode-go --with-api-key
    printenv MINIMAX_API_KEY | kay login --provider minimax --with-api-key
    printenv OPENAI_API_KEY | kay login --provider openai --with-api-key

    These commands save the credentials into $KAY_HOME/auth.json so Kay can reuse them the next time you launch the CLI, even from a different directory.

  3. Pick a model with /model.

    • Kay shows the models available for the providers you have configured.
    • For OpenCode Go, that is the OpenCode Go model list we already support.
    • For MiniMax, that is MiniMax M2.7.
    • For OpenAI, that is the upstream OpenAI model set supported by Codex.
  4. Start a task:

    • Type a prompt directly into the TUI, for example: refactor this module
    • Or run a one-shot command with kay exec "...".
    • Use /kay, /plan, /solve, or /auto when you want a specialized workflow.
  5. Review the transcript later if you need provenance or debugging context. Kay stores JSONL transcripts under ~/.kay/, and the transcript viewer makes them easy to inspect.

Build from source

git clone https://github.com/alo-labs/kay.git
cd kay

# Install Rust if you do not already have it.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"

# Build everything the same way CI validates it.
./build-fast.sh

# Launch the TUI.
./target/debug/kay -- "explain this codebase to me"

Provider support

Kay currently supports these provider credentials in the UI and CLI, in this order:

  1. OpenCode Go
  2. MiniMax
  3. OpenAI

Manage provider credentials from the TUI with:

  • /provider for provider credential CRUD
  • /model for model selection from the providers you have configured
  • /login for the existing account flow

You can also set a provider key directly from the CLI:

kay login --provider opencode-go --api-key <KEY>
kay login --provider minimax --api-key <KEY>
kay login --provider openai --api-key <KEY>

If you prefer stdin-safe entry:

printenv OPENCODE_GO_API_KEY | kay login --provider opencode-go --with-api-key
printenv MINIMAX_API_KEY | kay login --provider minimax --with-api-key
printenv OPENAI_API_KEY | kay login --provider openai --with-api-key

Core capabilities

Agents and orchestration

  • /auto hands a task to Auto Drive for multi-step coordination.
  • /plan is for collaborative planning before implementation.
  • /solve is for fast multi-agent problem solving.
  • /kay is the main coding workflow.

Browser workflows

  • /chrome connects to an external Chrome session.
  • /browser opens the internal browser experience.

UI and safety

  • /themes switches the visual theme.
  • /reasoning adjusts reasoning effort.
  • /approvals controls when Kay can proceed automatically.
  • /new starts a fresh conversation.

Transcripts and provenance

  • Conversation history is recorded as JSONL under ~/.kay/.
  • The transcript viewer provides a lightweight way to inspect sessions after the fact.
  • This makes it easier to debug model behavior, inspect provenance, and review what happened in a previous Kay session.

Documentation

Attribution and licenses

Kay is distributed under the repository license in LICENSE.

This project acknowledges and preserves the lineage of both Codex and Every Code. Any upstream code, concepts, or notices that Kay inherits remain governed by their original terms and attributions. This README is an overview of the project, not a replacement for the applicable license files or notices.

If you are redistributing or extending Kay, please review the included license files and any upstream notices before shipping changes.

About

Kay - The only Codex OSS > Every Code fork with multiple AI API provider support (OpenAI, MiniMax.io and OpenCode Go models)

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors