Ctxlane banner
mikigraf mikigraf

Ctxlane

Development community

Description

Switch and isolate personal, work, and CI accounts for Claude Code and Codex

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

ctxlane

**Use the right AI coding account, every time.**

`ctxlane` switches and isolates personal, work, and CI accounts for Claude Code and Codex.

In `ctxlane`, a profile represents one Claude or Codex account or authentication path. Each profile gets a separate vendor state directory. A context can switch both tools together or bind the selection to a project directory.

At launch, `ctxlane` removes known competing selectors and refuses inspected repository settings that could change the selected route. Wrapper-managed static secrets stay in the native OS credential store, outside repository files and shell configuration. The official vendor CLIs still handle login and model traffic; `ctxlane` adds no API proxy or remote credential service.

The ordinary CLI, terminal dashboard, and local account switching are standalone. They do not start or require an automation service, controller, MCP server, lease store, or automation-authority file, and they have no ASF or Runmill dependency.

Quick start

brew install mikigraf/tap/ctxlane

Used version 0.1? Follow [Migration from v0.1](docs/migration-from-v0.1.md) before setup. `ctxlane` does not import the old local store automatically.

Install at least one supported vendor CLI: [Claude Code](https://code.claude.com/docs/en/quickstart) or [Codex CLI](https://developers.openai.com/codex/cli/).

Claude Code

ctxlane init --guided
ctxlane run --profile claude:personal claude -- \
  -p "explain this repository"

The guided command initializes `ctxlane`, creates or reuses `claude:personal`, runs the official `claude setup-token` flow, safely accepts wrapped paste input, and stores the token in the native OS credential store.

Codex

ctxlane init
ctxlane profile add codex personal --auth subscription
ctxlane login codex:personal
ctxlane run --profile codex:personal codex -- \
  exec "explain this repository"

`ctxlane login` opens the official ChatGPT OAuth flow in Codex.