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.
- 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
AgentResultwith 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
ClippetRunnerin Python. - Third-party APIs:
clippet env endpointpoints an agent in an env at a relay, a compatible provider or a local server.
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.
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 accountDo 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 answerArguments 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).
| 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.
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 accountCLIppet also reads Cockpit Tools exports, sub2api and CLIProxyAPI files, auth.json and token bundles (all sources).
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 workspaceEach 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.
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.
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)The guide has the full reference:
- Envs: what
--from-currentcopies and how to manage them - Third-party APIs
- The Codex app, one instance per env (macOS)
- Pinning a project to an env with
.clippet.json - Terminal UI keys
- Python SDK, parallel runs and YAML or JSON configuration
- Architecture and custom adapters
git clone https://github.com/FanBB2333/CLIppet.git
cd CLIppet
pip install -e ".[dev,cockpit,tui]"
pytestThe guide explains how the drawings and the website are generated.