Skip to content
FanBB2333Public

About

Run Codex, Claude Code, Qoder CLI, pi, Copilot CLI and Antigravity CLI as whichever account you choose. Each env keeps its own login; import Codex accounts from Cockpit Tools, sub2api or CLIProxyAPI, and drive agents from the CLI, a terminal UI or Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CLIppet

CLIppet

CLIppet runs coding-agent CLIs (Codex, Claude Code, Qoder CLI, pi, GitHub Copilot CLI and Google Antigravity CLI) as whichever account you choose, several at a time, from the terminal, a terminal UI or Python.

CLIppet: one CLI to orchestrate them all

What it does

  • Envs: each env is a folder with its own logins, sessions and history, so switching accounts means switching envs, and two accounts can run at the same time.
  • Codex accounts: import them from Cockpit Tools, sub2api, CLIProxyAPI or auth.json. A linked env pulls the newest login before every launch.
  • Structured results: each agent's JSON events become one AgentResult with the answer, tool calls, token usage and session id.
  • Parallel runs: send one prompt to many envs from the terminal UI, or dispatch agents with ClippetRunner in Python.
  • Third-party APIs: clippet env endpoint points an agent in an env at a relay, a compatible provider or a local server.

Install

CLIppet is not on PyPI yet, and it needs Python 3.10+.

pip install "clippet[tui,cockpit] @ git+https://github.com/FanBB2333/CLIppet.git"

tui adds the terminal UI and cockpit reads the Cockpit Tools account store. CLIppet starts the agent CLIs you already have, so install only the ones you want to run.

Quick start

clippet env create work --from-current    # copy your agent configuration, not your logins
clippet -e work codex login               # log in once inside the env
clippet -e work codex                     # from now on, always this account

Do the same with another name for a second account. Two envs can run at the same time.

For a one-off run, point -c at a credential file. It goes into a throw-away env:

clippet -c /path/to/auth.json                # interactive
clippet -c /path/to/auth.json -p "say hi"    # once, headless, prints the answer

Arguments after the agent name go to the agent unchanged, such as clippet -e work codex resume --last. The one exception is a -p directly after the agent name, which is CLIppet's own (details).

Supported agents

Agent Command In an env
Codex codex your $HOME; its config in <env>/.codex (CODEX_HOME)
pi pi your $HOME; its config in <env>/.pi/agent (PI_CODING_AGENT_DIR)
Qoder CLI qodercli your $HOME; its config in <env>/.qoder (QODER_CONFIG_DIR)
Claude Code claude the env is its $HOME
GitHub Copilot CLI copilot the env is its $HOME
Google Antigravity CLI agy the env is its $HOME

Keeping your $HOME means git, SSH and the keychain work as usual. Envs separate logins and configuration; they are not a security sandbox. See how isolation works, and its limits.

Codex accounts

clippet auth list cockpit                        # what does Cockpit Tools hold?
clippet env import acct-a cockpit --account 2    # put one account into an env
clippet -e acct-a codex                          # Codex, logged in as that account

CLIppet also reads Cockpit Tools exports, sub2api and CLIProxyAPI files, auth.json and token bundles (all sources).

Antigravity accounts

clippet auth list cockpit --agent agy
clippet env import agy-work cockpit --agent agy --account 1
clippet env import agy-personal cockpit --agent agy --account 2
clippet -e agy-work agy
clippet -e agy-work agy -c      # continue the latest conversation in this workspace

Each env keeps its own agy login and conversations. You can also run clippet agy and choose an env by email. See the Antigravity account guide for one-off launches and moving an env.

Terminal UI

clippet tui, or plain clippet in a terminal, shows every env with its Codex account and remaining quota, launches agents and streams headless runs. It needs the tui extra.

clippet tui: the Envs place

Python

from clippet import ClippetRunner, AgentRequest
from clippet.adapters import CodexAdapter

runner = ClippetRunner(max_workers=4)
runner.register("codex", CodexAdapter(sandbox="workspace-write"))

request = AgentRequest(task_prompt="Find and fix the bug in src/server.py", workspace_dir="/path/to/project")
result = runner.execute("codex", request)

print(result.is_success, result.output_text, result.usage)

Documentation

The guide has the full reference:

Development

git clone https://github.com/FanBB2333/CLIppet.git
cd CLIppet
pip install -e ".[dev,cockpit,tui]"
pytest

The guide explains how the drawings and the website are generated.

License

MIT

About

Run Codex, Claude Code, Qoder CLI, pi, Copilot CLI and Antigravity CLI as whichever account you choose. Each env keeps its own login; import Codex accounts from Cockpit Tools, sub2api or CLIProxyAPI, and drive agents from the CLI, a terminal UI or Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages