Agent skill

Codexbar

by lizhelang in lizhelang/codexbar

Operate Codexbar's bundled CLI for OpenAI OAuth account login, import, listing, and activation.

MITAuto-check passedBackend & APIs

Install Codexbar

skills CLI
$ npx skills add lizhelang/codexbar --skill codexbar -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lizhelang/codexbar codexbar --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lizhelang/codexbar.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/codexbar .claude/skills/codexbar && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codexbar
GitHub stars
163
Token cost
~375 tokens
SKILL.md length
110 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Operate Codexbar's bundled CLI for OpenAI OAuth account login, import, listing, and activation.

  • Works in 3 steps: codexbarctl → /Applications/codexbar.app/Contents/MacOS… → Build from the repo
  • The user mentions codexbar
  • SKILL.md covers Resolve the binary, Standard commands and Rules
  • Calls xcodebuild

What it does

Codexbar is an agent skill from lizhelang/codexbar. Operate Codexbar's bundled CLI for OpenAI OAuth account login, import, listing, and activation. Use when the user mentions codexbar, OpenAI OAuth login, add account, activate account, or switch account.

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering OAuth and OpenID Connect. It works with OpenAI. The repository describes itself as: macOS menu bar app for switching Codex providers and accounts without breaking shared session history. The licence is MIT.

When your agent uses it

  • The user mentions codexbar
  • OpenAI OAuth login
  • Activate account

Example prompts

  • “/codexbar”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. codexbarctl
  2. /Applications/codexbar.app/Contents/MacOS/codexbarctl
  3. Build from the repo

What it can do on your machine

Read from SKILL.md and the folder at commit 9f2e0f5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • xcodebuild

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codexbar loads about 375 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 110 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~375

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lizhelang/codexbar at commit 9f2e0f5, republished under its MIT licence (© lizhelang). 110 words, ~375 tokens.

Download SKILL.mdSave it as .claude/skills/codexbar/SKILL.md (or your agent's skills folder).
name
codexbar
description
Operate Codexbar's bundled CLI for OpenAI OAuth account login, import, listing, and activation. Use when the user mentions codexbar, OpenAI OAuth login, add account, activate account, or switch account.

Codexbar CLI Skill

Use this skill when the task is about operating Codexbar accounts or OAuth flows. Prefer the CLI over the GUI.

Resolve the binary

Use the first working path:

  1. codexbarctl
  2. /Applications/codexbar.app/Contents/MacOS/codexbarctl
  3. Build from the repo:
bash
xcodebuild -scheme codexbarctl -destination 'platform=macOS' build

Then invoke the built binary from Xcode's product directory if needed.

Standard commands

Interactive human flow:

bash
codexbarctl openai login

Automation / AI flow:

bash
codexbarctl openai login start --json
codexbarctl openai login complete --flow-id <id> --callback-url <url> --json

If only the code parameter is available:

bash
codexbarctl openai login complete --flow-id <id> --code <code> --json

List accounts:

bash
codexbarctl accounts list --json

Activate an account:

bash
codexbarctl accounts activate --account-id <id> --json

Rules

  • Prefer openai login for a person in a terminal.
  • Prefer login start + login complete for AI or scriptable flows.
  • Do not hand-edit ~/.codex/auth.json or ~/.codex/config.toml if the CLI is available.
  • Never echo or summarize access_token, refresh_token, or id_token.

© lizhelang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/codexbar of lizhelang/codexbar.

Open the folder on GitHubat commit 9f2e0f5

Compare with similar skills

Codexbar next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codexbar compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codexbar this skilllizhelang/codexbar163—~375Automated safety check: PassMIT
Stripe Best Practiceskanchengw/cnllm1753 repos~925Automated safety check: PassApache-2.0
Xquik MCPXquik-dev/x-twitter-scraper2091 repos~997Automated safety check: PassMIT
Openclone CLIteam-attention/openclone130—~712Automated safety check: PassCustom licence
Local Codexdaymade/claude-code-skills1.4k—~1.6kAutomated safety check: PassMIT
Proxy Local AI SubscriptionsPeiiii/nextclaw260—~1.9kAutomated safety check: NotesMIT

Similar skills

  • Stripe Best Practices

    kanchengw/cnllm

    Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…

    175 GitHub starsUsed in 3 repos~925 tokens
    Backend & APIsAuto-check passed
  • Xquik MCP

    Xquik-dev/x-twitter-scraper

    Connect, verify, and troubleshoot Xquik's remote MCP server.

    209 GitHub starsUsed in 1 repo~997 tokens
    Backend & APIsAuto-check passed
  • Openclone CLI

    team-attention/openclone

    A skill your agent uses when the user wants to consult an AI persona "clone" for advice, strategy, analysis, or domain expertise—especially in startup, VC, tech, growth, HR, or business contexts.

    130 GitHub stars~712 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Local Codex

    daymade/claude-code-skills

    Launches and manages the local OpenAI Codex CLI as a non-interactive coding sub-agent via ChatGPT Pro OAuth, never API keys.

    1.4k GitHub stars~1.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • 当用户希望把本机 Codex、ChatGPT Codex 或 Claude Code 订阅通过 localhost 暴露为 OpenAI 兼容端点,或希望在代理验证成功后把它添加成 NextClaw 自定义 provider 时使用。负责 CLIProxyAPI 安装检查、安全配置、OAuth 登录、Homebrew/systemd 持久托管、重启存活验收、NextClaw provider…

    260 GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check: notes
  • Codex Imagen

    darkamenosa/codex-imagen

    Generate or edit raster images by calling the ChatGPT/Codex hosted imagegeneration flow with local Codex or OpenClaw OAuth credentials, then save decoded image files for OpenClaw and other agent…

    135 GitHub stars~2.6k tokensUpdated 14 days ago
    Media & CreativeAuto-check passed

Works with

Categories

Questions about Codexbar

What does Codexbar do?

Operate Codexbar's bundled CLI for OpenAI OAuth account login, import, listing, and activation. Codexbar is an agent skill from lizhelang/codexbar. Operate Codexbar's bundled CLI for OpenAI OAuth account login, import, listing, and activation.

When should I use Codexbar?

Codexbar fits situations like: the user mentions codexbar; openAI OAuth login; activate account.

How do I install Codexbar in Claude Code?

Run `npx skills add lizhelang/codexbar --skill codexbar -a claude-code`. Or copy the skill folder (.codex/skills/codexbar in lizhelang/codexbar) into .claude/skills/codexbar in your project. Claude Code loads it when a task matches its description.

How do I install Codexbar in Codex?

Run `npx skills add lizhelang/codexbar --skill codexbar -a codex`. Or copy the skill folder (.codex/skills/codexbar in lizhelang/codexbar) into .agents/skills/codexbar in your project. Codex loads it when a task matches its description.

Can I use Codexbar in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lizhelang/codexbar --skill codexbar -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codexbar, .gemini/skills/codexbar, .github/skills/codexbar and .opencode/skills/codexbar in your project.

What does Codexbar need to run?

Going by SKILL.md and its folder, Codexbar needs the command-line tools its instructions call (xcodebuild).

Does Codexbar access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Codexbar safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codexbar use?

Codexbar is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codexbar use?

About 375 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codexbar?

Skills that share tags, products or a category with Codexbar: Stripe Best Practices (kanchengw/cnllm, 175 stars), Xquik MCP (Xquik-dev/x-twitter-scraper, 209 stars), Openclone CLI (team-attention/openclone, 130 stars) and Local Codex (daymade/claude-code-skills, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codexbar?

lizhelang (a GitHub user) maintains it in lizhelang/codexbar, which has 163 GitHub stars. The repository was last updated on October 7, 2026.

Source: lizhelang/codexbar on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.