Harness login

From stevehuang0115/crewly · View interactive version

Harness login is an AI agent skill from the GitHub repository stevehuang0115/crewly. Log a coding harness (Claude Code, Codex) in, or switch its account, when the owner asks. Crewly keeps the login alive in its own terminal, DMs the owner the link in the thread they asked in, types the code they paste back into the login, and reports success itself. Never run claude setup-token / cl

How to use this skill

Skill file

Harness Login

The owner asks you to log Claude Code or Codex in again, or to use a different

account ("帮我重新登陆 claude code", "换个账号", "send me the login link").

bash config/skills/orchestrator/harness-login/execute.sh --harness claude
bash config/skills/orchestrator/harness-login/execute.sh --harness codex --switch-account
bash config/skills/orchestrator/harness-login/execute.sh --harness claude --account work

--account <name> signs in another of the owner's own Claude Code accounts

("login claude work"): it gets its own config dir and login, and agents move to

it when an earlier runtime in their fallback order runs out (chain entry

claude-code@work). Nothing is restarted. Add only Claude Code accounts that

the owner owns; never use it for another person's account.

What happens

  1. Crewly starts the harness's own login command in a terminal it keeps alive

(claude auth login for Claude, codex login --device-auth for Codex) —

even when the harness is still logged in, because the owner asked.

  1. The owner gets the link (and Codex's one-time code) in Slack, in the thread

they asked in.

  1. Claude: the owner pastes the code shown after authorizing straight back into

that thread. Crewly types it into the login. Codex needs nothing pasted.

  1. Crewly tells the owner in one line when it worked (and restarts the agents

on that harness so they use the new login), or when it failed.

The skill returns at once:

{"success":true,"status":"started","harnessId":"claude-code","displayName":"Claude Code","dmAvailable":true,"next":"…"}

After that, say nothing more about this login. Do not repeat the link, do

not say "I've sent it", do not write a status report. The flow speaks for

itself. If dmAvailable is false, follow next (Slack is down: tell the owner

in one line to finish it in Setup).

Rules

codex login or an Antigravity (agy) login in bash. The process dies when

the tool call returns, so every code the owner pastes is stale (2026-09-26).

The bash tool refuses these commands.

last 30 minutes asks for this login; otherwise it answers

owner_request_not_found. Do not start logins on your own.

Setup); Gemini CLI is enterprise-only. Pass the message on in one line.

relogin claude / login claude@work in your DM — Crewly handles that without you.

Errors

| reason | meaning |

|---|---|

| orchestrator_only | Only the orchestrator may call this |

| owner_request_not_found | No recent owner message asks for this login |

| owner_request_unverifiable | The owner's chat history could not be read |

| unknown_harness | Use claude, codex or antigravity |

| no_link_login | The harness has no link login (Antigravity, Gemini) |

| invalid_account | Account names are 1–32 lower-case letters, digits, - or _ |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.