[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CNZFDFZ1MA9RKKK6AKBPFA":3,"skill-same:01M7CNZFDFZ1MA9RKKK6AKBPFA":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7CNZFDFZ1MA9RKKK6AKBPFA","claude-router",null,"Operate the astack Claude router, which routes Claude Code across Claude accounts. Use to check it, read its status or cache cost, set it up, add or remove an account, or roll back to direct.","syanga\u002Fastack","syanga","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42523849?v=4","01M7CNYD2SW40HXC8R8CTVJPGE","Alan Yang","01M7CNYD3D0B0EYPA4AGXC1VC8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-router\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: claude-router\ndescription: Operate the astack Claude router, which routes Claude Code across Claude accounts. Use to check it, read its status or cache cost, set it up, add or remove an account, or roll back to direct.\n---\n\n# Operate the Claude router\n\nThe Claude router is a local proxy that routes Claude Code conversations\nacross several Claude subscription accounts. A user with one account does not\nneed it.\n\n## Find the command\n\nAn agent's shell may not have `claude-router` on PATH. This prints its\nabsolute path:\n\n```sh\necho \"${XDG_DATA_HOME:-$HOME\u002F.local\u002Fshare}\u002Fastack\u002Fclaude-router\u002Fbin\u002Fclaude-router\"\n```\n\nBelow, `claude-router` stands for that path. Write the absolute path in every\ncommand you run or give. If the file is missing, the router is not installed,\nand [Set up from nothing](#set-up-from-nothing) applies.\n\n## Run the read-only commands yourself\n\nRun `status`, `check`, and `cache` yourself. When `status` does not explain a\nfailure, also run the state and log commands in\n[Find the service](#find-the-service). None of these commands stops, restarts,\nor reconfigures the router. `check` sends one short test message on one\naccount's plan. Show their lines as printed. The router's tests check that its\nstatus, events, and service logs hold no token.\n\n| Command | Use it for |\n| --- | --- |\n| `claude-router status` | The service, one line per account, problem lines, and a `next` line with the step to take. |\n| `claude-router check` | Whether this machine routes Claude Code. Exits 0 when every line passes. It can take 2 minutes, so give it a 180-second timeout. |\n| `claude-router cache` | Each account's cache hit rate, then the last 24 hours' account moves and the cache writes they caused. `-since 6h` sets another window. |\n\nTo answer \"is the router working\", run `check` and report its lines, with the\nstep from [Read check lines](#read-check-lines) for each `fail` line.\n\n## Give the user every other command\n\nGive every other command to the user in a code block, to run in their own\nterminal, and say which reason applies:\n\n- A command that stops or restarts the router cuts off every routed session\n  in the middle of a turn, possibly this one.\n- A sign-in waits on a browser window that only the user can use.\n- `start` turns the router on at every login.\n\n| Command | What it does |\n| --- | --- |\n| `claude-router setup -account NAME ...` | Signs in each new account in a browser, starts the router, and activates it. Activation points Claude Code's settings at the router. |\n| `claude-router account add NAME` | Stops the router, signs in the account in a browser, and starts the router again. |\n| `claude-router account remove NAME` | Stops the router, removes the account, and starts the router again. |\n| `claude-router login -account NAME` | Signs in an account again. It runs only while the router is stopped. |\n| `claude-router stop` | Stops the router. |\n| `claude-router start` | Starts the router and turns it on at login. |\n| `claude-router direct` | Stops the router and restores Claude Code's settings. |\n| `cd CHECKOUT && .\u002Finstall.sh --component claude-router` | Builds the router. Over an activated router, it restarts the service. `astack-update` runs it itself, because invoking that skill authorizes the restart. |\n\n`NAME` is the user's label for an account, such as `work`. With `-no-browser`,\n`setup`, `account add`, and `login` print the sign-in URL. `account remove`\nrefuses for the last account, and for an account with conversations from the\nlast 5 hours. With `-force`, those conversations move to another account on\ntheir next request.\n\n`CHECKOUT` is the absolute path of the user's astack checkout. Ask the user\nfor it.\n\n## Read check lines\n\n`check` prints one line per check, then `check passed` or `check failed`, then\na `next` line after a failure. Each line starts with `ok`, `fail`, or `skip`.\nA `skip` line follows a failure or a stopped router and needs no step.\n\n| Text after `fail` | Step |\n| --- | --- |\n| `router not answering on ADDRESS` | If the settings line also fails, follow that row, because `setup` starts the router. Otherwise give `claude-router start`, and run `check` after the user runs it. |\n| `no accounts in config.json` | Give `claude-router setup -account NAME ...`. |\n| `NAMES not signed in` | Run `status`. For each account that needs a login, give `claude-router stop`, `claude-router login -account NAME`, and `claude-router start`. |\n| `paid overflow on for NAMES` | Ask the user to turn off paid overflow for those accounts on claude.ai. The router reads it again within 10 minutes. Run `check` after that, or give `claude-router stop` and `claude-router start` for a reading now. |\n| `paid overflow not read yet for NAMES` | Run `status` and report the account's reading. Run `check` again after the next reading, within 10 minutes. |\n| `Claude Code settings do not point at the router` | Give `claude-router setup`. See the list below the table. |\n| `no accepted record at PATH` | Give the install command, from a checkout whose `components\u002Fclaude-router\u002Faccepted.json` matches its code. |\n| `code differs from the accepted record` | Report the indented lines below it. For `binary: installed X, running Y` or `code: accepted X, running Y`, give `claude-router stop` and `claude-router start`. For any other line, give the install command, from a checkout whose `accepted.json` matches its code. |\n| `test message got no answer through the router (timed out after 120 s)` | Run `status` and report its problem lines. |\n| `test message got no answer through the router (claude exited 0)` | Run `status` and report its problem lines. If it shows none, Claude Code may have answered without the router. Ask the user to look for `ANTHROPIC_BASE_URL`, `ANTHROPIC_API_KEY`, or `ANTHROPIC_AUTH_TOKEN` in project settings, managed settings, and the shell. |\n| `test message got no answer through the router (claude exited N)` | Report the exit status. 127 means `claude` is not on PATH. For other values, run `status` and report its problem lines. |\n\nFor the settings line:\n\n- `setup` with no `-account` reuses the accounts in `config.json`. If it\n  refuses with `config.json lists no accounts`, give\n  `claude-router setup -account NAME ...`.\n- If `setup` refuses with `Claude Code already routes through the router`,\n  the settings changed after activation. Give `claude-router direct`, then\n  the same `setup`. If `direct` refuses, give its `next` line.\n- A settings file whose `env` sets `ANTHROPIC_API_KEY` or\n  `ANTHROPIC_AUTH_TOKEN` also fails this line. `setup` refuses until the user\n  removes the key.\n\nIf `check` stops before the first check line, it prints a line that starts\nwith `claude-router:` or `astack:`. Report that line, and give the `next` line\nif one follows.\n\n## Know what the router costs and refuses\n\nThe router can move a conversation to another account. Each move records a\nreason, such as `exhausted` when the conversation's account runs out of\nincluded allowance, or `overage_observed` when the account shows paid use.\nThe first request on the new account writes the conversation's prompt cache\nagain. `status` prints a `cache` line when moves caused more than 10% of the\nlast 24 hours' cache writes. `claude-router cache` counts moves by reason.\nWhile the router runs, `status -v` lists recent moves with their reasons.\n\nPaid overflow is the claude.ai setting that bills usage past the plan's\nincluded allowance, shown there as extra usage or usage credits. The router\nsends requests only to accounts whose latest reading shows paid overflow off.\nThe reading must be less than `overage_fresh_for` old, a `config.json`\nsetting with a default of 30 minutes. If the user turns paid overflow on\nafter the last reading, while the account's included allowance is used up,\none paid response can happen before the router sees it.\n\n`place_again_after` in `config.json`, default 65 minutes, sets when a\nconversation counts as idle. Idle time counts from the last request the\nrouter sent to an account for the conversation. It also counts from a manual\nmove (`claude-router move`) or a router start, when either is later. A login\nerror, paid-overflow refusal, or wait from the router sends nothing to an\naccount, so it does not restart idle time. The router reads `config.json`\nonly at start. In `status -v`, the state `idle` is a different measure. It\nmeans no request sent to an account and no placement or move in the last\nhour, counting requests only since the router started.\n\nAt an idle conversation's next request, the router places the conversation\nagain, as it places a new one. Placement prefers a less busy account with\nmore unused allowance before its reset. Placement never picks an account\nthat needs a login or fails the paid-overflow rule above. An idle\nconversation therefore also leaves such an account when another account can\nserve the conversation. The move's reason is `idle`, except for states that\nalso move a conversation that is not idle. Exhaustion, paid use, removal\nfrom `config.json`, and a login needed before the account answered the\nconversation keep their own reasons. The router checks a login needed after\nthe account answered the conversation before exhaustion and paid use. A move\noff an account in that state therefore has the reason `idle`, even when the\naccount is also exhausted or shows paid use.\n\nAt the default of 65 minutes, the conversation's prompt cache has expired,\nso `claude-router cache` counts a move with reason `idle` at no cost. The\nexception is a move whose request started less than an hour after the\nconversation's previous answered request started. That happens when two\nrequests race, or when `place_again_after` is below one hour. The problem\nlines of `status` leave out moves with reason `idle`.\n\nA Claude model newer than the router's model list gets a 503 that says the\nSDK refused the pinned account without an upstream attempt. The router\nreads the published model catalog at each start, so give the user\n`claude-router stop` and `claude-router start`.\n\n## Set up from nothing\n\nGive the user these steps. Put the checkout's absolute path in place of\n`CHECKOUT`, and the user's account labels in place of `work` and `alumni`.\n\n1. Install Go 1.26 or newer from \u003Chttps:\u002F\u002Fgo.dev\u002Fdl\u002F>, Python 3.10 or newer,\n   and Claude Code. `python3 --version`, `go version`, and `claude --version`\n   must work in the shell.\n2. If the user has no astack checkout, give\n   `git clone https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack.git`. `CHECKOUT` is then the\n   absolute path of the new `astack` directory.\n3. Download the pinned modules once, with network access:\n\n   ```sh\n   (cd CHECKOUT\u002Fcomponents\u002Fclaude-router && go mod download)\n   ```\n\n4. Build and install the router. The install changes no Claude Code settings:\n\n   ```sh\n   cd CHECKOUT && .\u002Finstall.sh --component claude-router\n   ```\n\n5. When the install asks `Add claude-router to PATH in FILE? [Y\u002Fn]`, press\n   Enter. When it prints `SKIP PATH` instead, add the line it prints to the\n   shell's startup file. Then open a new shell.\n\n6. On Linux only, let the router run without a login session:\n\n   ```sh\n   sudo loginctl enable-linger \"$USER\"\n   ```\n\n7. Sign in each account, start the router, and activate it:\n\n   ```sh\n   claude-router setup -account work -account alumni\n   ```\n\n   It ends with `activated Claude Code routes through the router`. On Linux,\n   the `code matches` line ends with `(darwin\u002Farm64)`, and a `note` line says\n   `not yet tested on real Linux`. Both name the accepted record's platform,\n   and neither is a failure.\n\nIf `setup` refuses because an account has paid overflow on, ask the user to\nturn it off on claude.ai, then give `claude-router stop` and\n`claude-router setup`. Without the `stop`, the running router keeps its old\nreading for up to 10 minutes and `setup` can refuse again.\n\nAfter `setup` and after `direct`, tell the user to start a new Claude Code\nsession, because a session reads its settings when it starts. After the user\nreports that `setup` finished, run `check`.\n\n## Roll back\n\nGive the user `claude-router direct`, and tell them to start a new Claude Code\nsession. If `direct` prints `after   claude needs its own \u002Flogin`, tell the\nuser to run `\u002Flogin` in that session. `claude-router setup` activates the\nrouter again. `cd CHECKOUT && .\u002Funinstall.sh --component claude-router`\nremoves it. `direct` and uninstall keep logins and assignments.\n\n## Find the service\n\nWhen `status` does not explain a failure, run the state and log commands for\nthis system and report what they show.\n\n| | macOS | Linux |\n| --- | --- | --- |\n| Service | launchd agent `dev.astack.claude-router` | systemd user unit `dev.astack.claude-router.service` |\n| State | `launchctl print gui\u002F$(id -u)\u002Fdev.astack.claude-router` | `systemctl --user status --no-pager dev.astack.claude-router` |\n| Logs | `tail -n 100 \"${XDG_STATE_HOME:-$HOME\u002F.local\u002Fstate}\u002Fastack\u002Fclaude-router\u002Fservice.log\"` | `journalctl --user -u dev.astack.claude-router --no-pager -n 100` |\n| Starts | At each login | At boot with linger. Without linger, at login, and it stops about 15 seconds after the last session ends. |\n","# Operate the Claude router\n\nThe Claude router is a local proxy that routes Claude Code conversations\nacross several Claude subscription accounts. A user with one account does not\nneed it.\n\n## Find the command\n\nAn agent's shell may not have `claude-router` on PATH. This prints its\nabsolute path:\n\n```sh\necho \"${XDG_DATA_HOME:-$HOME\u002F.local\u002Fshare}\u002Fastack\u002Fclaude-router\u002Fbin\u002Fclaude-router\"\n```\n\nBelow, `claude-router` stands for that path. Write the absolute path in every\ncommand you run or give. If the file is missing, the router is not installed,\nand [Set up from nothing](#set-up-from-nothing) applies.\n\n## Run the read-only commands yourself\n\nRun `status`, `check`, and `cache` yourself. When `status` does not explain a\nfailure, also run the state and log commands in\n[Find the service](#find-the-service). None of these commands stops, restarts,\nor reconfigures the router. `check` sends one short test message on one\naccount's plan. Show their lines as printed. The router's tests check that its\nstatus, events, and service logs hold no token.\n\n| Command | Use it for |\n| --- | --- |\n| `claude-router status` | The service, one line per account, problem lines, and a `next` line with the step to take. |\n| `claude-router check` | Whether this machine routes Claude Code. Exits 0 when every line passes. It can take 2 minutes, so give it a 180-second timeout. |\n| `claude-router cache` | Each account's cache hit rate, then the last 24 hours' account moves and the cache writes they caused. `-since 6h` sets another window. |\n\nTo answer \"is the router working\", run `check` and report its lines, with the\nstep from [Read check lines](#read-check-lines) for each `fail` line.\n\n## Give the user every other command\n\nGive every other command to the user in a code block, to run in their own\nterminal, and say which reason applies:\n\n- A command that stops or restarts the router cuts off every routed session\n  in the middle of a turn, possibly this one.\n- A sign-in waits on a browser window that only the user can use.\n- `start` turns the router on at every login.\n\n| Command | What it does |\n| --- | --- |\n| `claude-router setup -account NAME ...` | Signs in each new account in a browser, starts the router, and activates it. Activation points Claude Code's settings at the router. |\n| `claude-router account add NAME` | Stops the router, signs in the account in a browser, and starts the router again. |\n| `claude-router account remove NAME` | Stops the router, removes the account, and starts the router again. |\n| `claude-router login -account NAME` | Signs in an account again. It runs only while the router is stopped. |\n| `claude-router stop` | Stops the router. |\n| `claude-router start` | Starts the router and turns it on at login. |\n| `claude-router direct` | Stops the router and restores Claude Code's settings. |\n| `cd CHECKOUT && .\u002Finstall.sh --component claude-router` | Builds the router. Over an activated router, it restarts the service. `astack-update` runs it itself, because invoking that skill authorizes the restart. |\n\n`NAME` is the user's label for an account, such as `work`. With `-no-browser`,\n`setup`, `account add`, and `login` print the sign-in URL. `account remove`\nrefuses for the last account, and for an account with conversations from the\nlast 5 hours. With `-force`, those conversations move to another account on\ntheir next request.\n\n`CHECKOUT` is the absolute path of the user's astack checkout. Ask the user\nfor it.\n\n## Read check lines\n\n`check` prints one line per check, then `check passed` or `check failed`, then\na `next` line after a failure. Each line starts with `ok`, `fail`, or `skip`.\nA `skip` line follows a failure or a stopped router and needs no step.\n\n| Text after `fail` | Step |\n| --- | --- |\n| `router not answering on ADDRESS` | If the settings line also fails, follow that row, because `setup` starts the router. Otherwise give `claude-router start`, and run `check` after the user runs it. |\n| `no accounts in config.json` | Give `claude-router setup -account NAME ...`. |\n| `NAMES not signed in` | Run `status`. For each account that needs a login, give `claude-router stop`, `claude-router login -account NAME`, and `claude-router start`. |\n| `paid overflow on for NAMES` | Ask the user to turn off paid overflow for those accounts on claude.ai. The router reads it again within 10 minutes. Run `check` after that, or give `claude-router stop` and `claude-router start` for a reading now. |\n| `paid overflow not read yet for NAMES` | Run `status` and report the account's reading. Run `check` again after the next reading, within 10 minutes. |\n| `Claude Code settings do not point at the router` | Give `claude-router setup`. See the list below the table. |\n| `no accepted record at PATH` | Give the install command, from a checkout whose `components\u002Fclaude-router\u002Faccepted.json` matches its code. |\n| `code differs from the accepted record` | Report the indented lines below it. For `binary: installed X, running Y` or `code: accepted X, running Y`, give `claude-router stop` and `claude-router start`. For any other line, give the install command, from a checkout whose `accepted.json` matches its code. |\n| `test message got no answer through the router (timed out after 120 s)` | Run `status` and report its problem lines. |\n| `test message got no answer through the router (claude exited 0)` | Run `status` and report its problem lines. If it shows none, Claude Code may have answered without the router. Ask the user to look for `ANTHROPIC_BASE_URL`, `ANTHROPIC_API_KEY`, or `ANTHROPIC_AUTH_TOKEN` in project settings, managed settings, and the shell. |\n| `test message got no answer through the router (claude exited N)` | Report the exit status. 127 means `claude` is not on PATH. For other values, run `status` and report its problem lines. |\n\nFor the settings line:\n\n- `setup` with no `-account` reuses the accounts in `config.json`. If it\n  refuses with `config.json lists no accounts`, give\n  `claude-router setup -account NAME ...`.\n- If `setup` refuses with `Claude Code already routes through the router`,\n  the settings changed after activation. Give `claude-router direct`, then\n  the same `setup`. If `direct` refuses, give its `next` line.\n- A settings file whose `env` sets `ANTHROPIC_API_KEY` or\n  `ANTHROPIC_AUTH_TOKEN` also fails this line. `setup` refuses until the user\n  removes the key.\n\nIf `check` stops before the first check line, it prints a line that starts\nwith `claude-router:` or `astack:`. Report that line, and give the `next` line\nif one follows.\n\n## Know what the router costs and refuses\n\nThe router can move a conversation to another account. Each move records a\nreason, such as `exhausted` when the conversation's account runs out of\nincluded allowance, or `overage_observed` when the account shows paid use.\nThe first request on the new account writes the conversation's prompt cache\nagain. `status` prints a `cache` line when moves caused more than 10% of the\nlast 24 hours' cache writes. `claude-router cache` counts moves by reason.\nWhile the router runs, `status -v` lists recent moves with their reasons.\n\nPaid overflow is the claude.ai setting that bills usage past the plan's\nincluded allowance, shown there as extra usage or usage credits. The router\nsends requests only to accounts whose latest reading shows paid overflow off.\nThe reading must be less than `overage_fresh_for` old, a `config.json`\nsetting with a default of 30 minutes. If the user turns paid overflow on\nafter the last reading, while the account's included allowance is used up,\none paid response can happen before the router sees it.\n\n`place_again_after` in `config.json`, default 65 minutes, sets when a\nconversation counts as idle. Idle time counts from the last request the\nrouter sent to an account for the conversation. It also counts from a manual\nmove (`claude-router move`) or a router start, when either is later. A login\nerror, paid-overflow refusal, or wait from the router sends nothing to an\naccount, so it does not restart idle time. The router reads `config.json`\nonly at start. In `status -v`, the state `idle` is a different measure. It\nmeans no request sent to an account and no placement or move in the last\nhour, counting requests only since the router started.\n\nAt an idle conversation's next request, the router places the conversation\nagain, as it places a new one. Placement prefers a less busy account with\nmore unused allowance before its reset. Placement never picks an account\nthat needs a login or fails the paid-overflow rule above. An idle\nconversation therefore also leaves such an account when another account can\nserve the conversation. The move's reason is `idle`, except for states that\nalso move a conversation that is not idle. Exhaustion, paid use, removal\nfrom `config.json`, and a login needed before the account answered the\nconversation keep their own reasons. The router checks a login needed after\nthe account answered the conversation before exhaustion and paid use. A move\noff an account in that state therefore has the reason `idle`, even when the\naccount is also exhausted or shows paid use.\n\nAt the default of 65 minutes, the conversation's prompt cache has expired,\nso `claude-router cache` counts a move with reason `idle` at no cost. The\nexception is a move whose request started less than an hour after the\nconversation's previous answered request started. That happens when two\nrequests race, or when `place_again_after` is below one hour. The problem\nlines of `status` leave out moves with reason `idle`.\n\nA Claude model newer than the router's model list gets a 503 that says the\nSDK refused the pinned account without an upstream attempt. The router\nreads the published model catalog at each start, so give the user\n`claude-router stop` and `claude-router start`.\n\n## Set up from nothing\n\nGive the user these steps. Put the checkout's absolute path in place of\n`CHECKOUT`, and the user's account labels in place of `work` and `alumni`.\n\n1. Install Go 1.26 or newer from \u003Chttps:\u002F\u002Fgo.dev\u002Fdl\u002F>, Python 3.10 or newer,\n   and Claude Code. `python3 --version`, `go version`, and `claude --version`\n   must work in the shell.\n2. If the user has no astack checkout, give\n   `git clone https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack.git`. `CHECKOUT` is then the\n   absolute path of the new `astack` directory.\n3. Download the pinned modules once, with network access:\n\n   ```sh\n   (cd CHECKOUT\u002Fcomponents\u002Fclaude-router && go mod download)\n   ```\n\n4. Build and install the router. The install changes no Claude Code settings:\n\n   ```sh\n   cd CHECKOUT && .\u002Finstall.sh --component claude-router\n   ```\n\n5. When the install asks `Add claude-router to PATH in FILE? [Y\u002Fn]`, press\n   Enter. When it prints `SKIP PATH` instead, add the line it prints to the\n   shell's startup file. Then open a new shell.\n\n6. On Linux only, let the router run without a login session:\n\n   ```sh\n   sudo loginctl enable-linger \"$USER\"\n   ```\n\n7. Sign in each account, start the router, and activate it:\n\n   ```sh\n   claude-router setup -account work -account alumni\n   ```\n\n   It ends with `activated Claude Code routes through the router`. On Linux,\n   the `code matches` line ends with `(darwin\u002Farm64)`, and a `note` line says\n   `not yet tested on real Linux`. Both name the accepted record's platform,\n   and neither is a failure.\n\nIf `setup` refuses because an account has paid overflow on, ask the user to\nturn it off on claude.ai, then give `claude-router stop` and\n`claude-router setup`. Without the `stop`, the running router keeps its old\nreading for up to 10 minutes and `setup` can refuse again.\n\nAfter `setup` and after `direct`, tell the user to start a new Claude Code\nsession, because a session reads its settings when it starts. After the user\nreports that `setup` finished, run `check`.\n\n## Roll back\n\nGive the user `claude-router direct`, and tell them to start a new Claude Code\nsession. If `direct` prints `after   claude needs its own \u002Flogin`, tell the\nuser to run `\u002Flogin` in that session. `claude-router setup` activates the\nrouter again. `cd CHECKOUT && .\u002Funinstall.sh --component claude-router`\nremoves it. `direct` and uninstall keep logins and assignments.\n\n## Find the service\n\nWhen `status` does not explain a failure, run the state and log commands for\nthis system and report what they show.\n\n| | macOS | Linux |\n| --- | --- | --- |\n| Service | launchd agent `dev.astack.claude-router` | systemd user unit `dev.astack.claude-router.service` |\n| State | `launchctl print gui\u002F$(id -u)\u002Fdev.astack.claude-router` | `systemctl --user status --no-pager dev.astack.claude-router` |\n| Logs | `tail -n 100 \"${XDG_STATE_HOME:-$HOME\u002F.local\u002Fstate}\u002Fastack\u002Fclaude-router\u002Fservice.log\"` | `journalctl --user -u dev.astack.claude-router --no-pager -n 100` |\n| Starts | At each login | At boot with linger. Without linger, at login, and it stops about 15 seconds after the last session ends. |\n",{"name":5,"description":7},"main","ec1ea5dc71f382a2a09360a736d31b7294e5ecc2","skills\u002Fclaude-router","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack","https:\u002F\u002Fgithub.com\u002Fsyanga","2026-11-14 17:01:29",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add syanga\u002Fastack --skill claude-router",{"tool":36,"command":37},"bunx","bunx skills add syanga\u002Fastack --skill claude-router",{"tool":39,"command":40},"pnpm","pnpm dlx skills add syanga\u002Fastack --skill claude-router","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-router\u002FSKILL.md",true,[],[45,52,60,68,76,84],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7CP39S6D7662SFCC9K286T7","replace-with-skill-name","Replace with when this skill should be reached.","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Ftemplates\u002Fskill\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":56,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7CP37YN62Z7VR6P2J7918ZA","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":64,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CP353RP2S1M1ZMHFZ0F610","worktree-cleanup","Worktree cleanup. Use for cleanup, resource audits, close this lane, or close out.","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fworktree-cleanup\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fworktree-cleanup\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CP32DSVPRTBAFHF1P6NZ1X","wizard","Generate an interactive Bash wizard that walks a human through steps only they can perform. Use when provisioning, credential setup, or a one-off migration needs such steps.","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwizard\u002FLICENSE-mattpocock","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7CP2YE3WABQE9MNY8RQD6MX","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Returns a cited read on decisions and tradeoffs.","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwhy\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CP2VP8JA1HYDE8TJX2Y494","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwayfinder\u002FLICENSE-mattpocock","https:\u002F\u002Fgithub.com\u002Fsyanga\u002Fastack\u002Fblob\u002Fmain\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[]]