@anyrouterdev/cc 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +15 -0
  2. package/bin.mjs +7 -0
  3. package/package.json +37 -0
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # @anyrouterdev/cc
2
+
3
+ Launch [Claude Code](https://claude.com/claude-code) through [AnyRouter](https://anyrouter.dev) — one key fronts every provider, with auto-failover.
4
+
5
+ ```bash
6
+ npx @anyrouterdev/cc
7
+ ```
8
+
9
+ First run sets you up: paste an AnyRouter API key, or log in at anyrouter.dev (a key is generated for you). Config is saved to `~/.config/anyrouter/config.yaml` and reused next time.
10
+
11
+ ```bash
12
+ npx @anyrouterdev/cc --model auto --effort high -- <claude args>
13
+ ```
14
+
15
+ The same stored key also powers [`@anyrouterdev/codex`](https://www.npmjs.com/package/@anyrouterdev/codex). Full docs: https://anyrouter.dev/docs/guides/cli
package/bin.mjs ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ // @anyrouterdev/cc — launch Claude Code through AnyRouter.
3
+ import { run } from "@anyrouterdev/cli"
4
+
5
+ run({ tool: "claude", argv: process.argv.slice(2) }).then((code) => {
6
+ process.exitCode = code
7
+ })
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@anyrouterdev/cc",
3
+ "version": "0.2.0",
4
+ "description": "Launch Claude Code through AnyRouter — one key, every provider. `npx @anyrouterdev/cc`",
5
+ "type": "module",
6
+ "bin": {
7
+ "cc": "bin.mjs"
8
+ },
9
+ "files": [
10
+ "bin.mjs",
11
+ "README.md"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "keywords": [
17
+ "anyrouter",
18
+ "claude-code",
19
+ "llm",
20
+ "gateway",
21
+ "cli"
22
+ ],
23
+ "homepage": "https://anyrouter.dev",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/duyet/anyrouter.git",
27
+ "directory": "cli/launchers/cc"
28
+ },
29
+ "author": "Duyet Le",
30
+ "license": "MIT",
31
+ "dependencies": {
32
+ "@anyrouterdev/cli": "^0.2.0"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ }
37
+ }