routerrouter-cli 0.1.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.
- package/LICENSE +21 -0
- package/README.md +36 -0
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/dist/routerrouter.mjs +65371 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vijay Michalik
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# RouterRouter CLI
|
|
2
|
+
|
|
3
|
+
RouterRouter runs one OpenAI-compatible endpoint in front of the AI routers you
|
|
4
|
+
already use. Provider keys stay in environment variables and process memory.
|
|
5
|
+
There is no account, route database, or telemetry.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install -g routerrouter-cli
|
|
9
|
+
routerrouter init
|
|
10
|
+
routerrouter start
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The default config routes from OpenRouter to Vercel AI Gateway. `init` can also
|
|
14
|
+
configure Cloudflare AI Gateway and Ramp Router, ordered fallback, weighted
|
|
15
|
+
first choice, per-router models, retries, and timeouts.
|
|
16
|
+
|
|
17
|
+
Point an OpenAI-compatible client at the URL printed by `routerrouter start`,
|
|
18
|
+
use the printed local API key, and request the virtual model
|
|
19
|
+
`routerrouter/auto`. Responses include `x-routerrouter-upstream` and
|
|
20
|
+
`x-routerrouter-trace` headers.
|
|
21
|
+
|
|
22
|
+
## Commands
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
routerrouter init
|
|
26
|
+
routerrouter doctor
|
|
27
|
+
routerrouter start
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Run `routerrouter --help` for flags. The server binds to `127.0.0.1` by default.
|
|
31
|
+
Set `ROUTERROUTER_API_KEY` to use a stable local API key. Binding to `0.0.0.0`
|
|
32
|
+
or `::` makes the endpoint reachable from other devices and should only be done
|
|
33
|
+
on a trusted network.
|
|
34
|
+
|
|
35
|
+
RouterRouter uses the open-source Portkey AI Gateway for upstream protocol
|
|
36
|
+
handling and streaming. See `THIRD_PARTY_NOTICES.md`.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
RouterRouter bundles the Portkey AI Gateway at commit
|
|
4
|
+
`669825cbe89ee51569918b8f78a9db486fd69dd4`.
|
|
5
|
+
|
|
6
|
+
- Project: Portkey AI Gateway
|
|
7
|
+
- Source: https://github.com/Portkey-AI/gateway
|
|
8
|
+
- License: MIT
|
|
9
|
+
|
|
10
|
+
The following license applies to the bundled Portkey portions of this package.
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
MIT License
|
|
14
|
+
|
|
15
|
+
Copyright (c) 2024 Portkey, Inc
|
|
16
|
+
|
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
18
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
19
|
+
in the Software without restriction, including without limitation the rights
|
|
20
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
21
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
22
|
+
furnished to do so, subject to the following conditions:
|
|
23
|
+
|
|
24
|
+
The above copyright notice and this permission notice shall be included in all
|
|
25
|
+
copies or substantial portions of the Software.
|
|
26
|
+
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
+
SOFTWARE.
|
|
34
|
+
```
|