forked from router-for-me/CLIProxyAPIPlus
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathllms-full.txt
More file actions
7000 lines (6938 loc) · 248 KB
/
llms-full.txt
File metadata and controls
7000 lines (6938 loc) · 248 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# cliproxyapi++ LLM Context (Full)
Expanded, line-addressable repository context.
# cliproxyapi++ LLM Context (Concise)
Generated from repository files for agent/dev/user consumption.
## README Highlights
# cliproxyapi++ 🚀
[](https://goreportcard.com/report/github.com/KooshaPari/cliproxyapi-plusplus)
[](https://opensource.org/licenses/MIT)
[](https://hub.docker.com/r/kooshapari/cliproxyapi-plusplus)
[](https://github.com/KooshaPari/cliproxyapi-plusplus/releases)
English | [中文](README_CN.md)
**cliproxyapi++** is the definitive high-performance, security-hardened fork of [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI). Designed with a "Defense in Depth" philosophy and a "Library-First" architecture, it provides an OpenAI-compatible interface for proprietary LLMs with enterprise-grade stability.
---
## 🏆 Deep Dive: The `++` Advantage
Why choose **cliproxyapi++** over the mainline? While the mainline focus is on open-source stability, the `++` variant is built for high-scale, production environments where security, automated lifecycle management, and broad provider support are critical.
Full feature-by-feature change reference:
- **[Feature Changes in ++](./docs/FEATURE_CHANGES_PLUSPLUS.md)**
### 📊 Feature Comparison Matrix
| Feature | Mainline | CLIProxyAPI+ | **cliproxyapi++** |
| :--- | :---: | :---: | :---: |
| **Core Proxy Logic** | ✅ | ✅ | ✅ |
| **Basic Provider Support** | ✅ | ✅ | ✅ |
| **Standard UI** | ❌ | ✅ | ✅ |
| **Advanced Auth (Kiro/Copilot)** | ❌ | ⚠️ | ✅ **(Full Support)** |
| **Background Token Refresh** | ❌ | ❌ | ✅ **(Auto-Refresh)** |
| **Security Hardening** | Basic | Basic | ✅ **(Enterprise-Grade)** |
| **Rate Limiting & Cooldown** | ❌ | ❌ | ✅ **(Intelligent)** |
| **Core Reusability** | `internal/` | `internal/` | ✅ **(`pkg/llmproxy`)** |
| **CI/CD Pipeline** | Basic | Basic | ✅ **(Signed/Multi-arch)** |
---
## 🔍 Technical Differences & Hardening
### 1. Architectural Evolution: `pkg/llmproxy`
Unlike the mainline which keeps its core logic in `internal/` (preventing external Go projects from importing it), **cliproxyapi++** has refactored its entire translation and proxying engine into a clean, public `pkg/llmproxy` library.
* **Reusability**: Import the proxy logic directly into your own Go applications.
* **Decoupling**: Configuration management is strictly separated from execution logic.
### 2. Enterprise Authentication & Lifecycle
* **Full GitHub Copilot Integration**: Not just an API wrapper. `++` includes a full OAuth device flow, per-credential quota tracking, and intelligent session management.
* **Kiro (AWS CodeWhisperer) 2.0**: A custom-built web UI (`/v0/oauth/kiro`) for browser-based AWS Builder ID and Identity Center logins.
* **Background Token Refresh**: A dedicated worker service monitors tokens and automatically refreshes them 10 minutes before expiration, ensuring zero downtime for your agents.
### 3. Security Hardening ("Defense in Depth")
* **Path Guard**: A custom GitHub Action workflow (`pr-path-guard`) that prevents any unauthorized changes to critical `internal/translator/` logic during PRs.
* **Device Fingerprinting**: Generates unique, immutable device identifiers to satisfy strict provider security checks and prevent account flagging.
* **Hardened Docker Base**: Built on a specific, audited Alpine 3.22.0 layer with minimal packages, reducing the potential attack surface.
### 4. High-Scale Operations
* **Intelligent Cooldown**: Automated "cooling" mechanism that detects provider-side rate limits and intelligently pauses requests to specific providers while routing others.
* **Unified Model Converter**: A sophisticated mapping layer that allows you to request `claude-3-5-sonnet` and have the proxy automatically handle the specific protocol requirements of the target provider (Vertex, AWS, Anthropic, etc.).
---
## 🚀 Getting Started
### Prerequisites
- [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/)
- OR [Go 1.26+](https://golang.org/dl/)
### One-Command Deployment (Docker)
```bash
# Setup deployment
mkdir -p ~/cliproxy && cd ~/cliproxy
curl -o config.yaml https://raw.githubusercontent.com/KooshaPari/cliproxyapi-plusplus/main/config.example.yaml
# Create compose file
cat > docker-compose.yml << 'EOF'
services:
cliproxy:
image: KooshaPari/cliproxyapi-plusplus:latest
container_name: cliproxyapi++
ports: ["8317:8317"]
volumes:
- ./config.yaml:/CLIProxyAPI/config.yaml
- ./auths:/root/.cli-proxy-api
- ./logs:/CLIProxyAPI/logs
restart: unless-stopped
EOF
docker compose up -d
```
---
## 🛠️ Advanced Usage
### Extended Provider Support
`cliproxyapi++` supports a massive registry of providers out-of-the-box:
* **Direct**: Claude, Gemini, OpenAI, Mistral, Groq, DeepSeek.
* **Aggregators**: OpenRouter, Together AI, Fireworks AI, Novita AI, SiliconFlow.
* **Proprietary**: Kiro (AWS), GitHub Copilot, Roo Code, Kilo AI, MiniMax.
### API Specification
The proxy provides two main API surfaces:
1. **OpenAI Interface**: `/v1/chat/completions` and `/v1/models` (Full parity).
2. **Management Interface**:
* `GET /v0/config`: Inspect current (hot-reloaded) config.
* `GET /v0/oauth/kiro`: Interactive Kiro auth UI.
* `GET /v0/logs`: Real-time log inspection.
---
## 🤝 Contributing
We maintain strict quality gates to preserve the "hardened" status of the project:
1. **Linting**: Must pass `golangci-lint` with zero warnings.
2. **Coverage**: All new translator logic MUST include unit tests.
3. **Governance**: Changes to core `pkg/` logic require a corresponding Issue discussion.
See **[CONTRIBUTING.md](CONTRIBUTING.md)** for more details.
---
## 📚 Documentation
- **[Docsets](./docs/docsets/)** — Role-oriented documentation sets.
- [Developer (Internal)](./docs/docsets/developer/internal/)
- [Developer (External)](./docs/docsets/developer/external/)
- [Technical User](./docs/docsets/user/)
- [Agent Operator](./docs/docsets/agent/)
- **[Feature Changes in ++](./docs/FEATURE_CHANGES_PLUSPLUS.md)** — Comprehensive list of `++` differences and impacts.
- **[Docs README](./docs/README.md)** — Core docs map.
---
## 🚢 Docs Deploy
Local VitePress docs:
```bash
cd docs
npm install
npm run docs:dev
npm run docs:build
```
GitHub Pages:
- Workflow: `.github/workflows/vitepress-pages.yml`
- URL convention: `https://<owner>.github.io/cliproxyapi-plusplus/`
---
## 📜 License
Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
---
<p align="center">
<b>Hardened AI Infrastructure for the Modern Agentic Stack.</b><br>
Built with ❤️ by the community.
</p>
## Taskfile Tasks
- GO_FILES
- default
- build
- run
- test
- lint
- tidy
- docker:build
- docker:run
- docker:stop
- doctor
- ax:spec
## Documentation Index
- docs/FEATURE_CHANGES_PLUSPLUS.md
- docs/README.md
- docs/docsets/agent/index.md
- docs/docsets/agent/operating-model.md
- docs/docsets/developer/external/index.md
- docs/docsets/developer/external/integration-quickstart.md
- docs/docsets/developer/internal/architecture.md
- docs/docsets/developer/internal/index.md
- docs/docsets/index.md
- docs/docsets/user/index.md
- docs/docsets/user/quickstart.md
- docs/features/architecture/DEV.md
- docs/features/architecture/SPEC.md
- docs/features/architecture/USER.md
- docs/features/auth/SPEC.md
- docs/features/auth/USER.md
- docs/features/operations/SPEC.md
- docs/features/operations/USER.md
- docs/features/providers/SPEC.md
- docs/features/providers/USER.md
- docs/features/security/SPEC.md
- docs/features/security/USER.md
- docs/index.md
- docs/sdk-access.md
- docs/sdk-access_CN.md
- docs/sdk-advanced.md
- docs/sdk-advanced_CN.md
- docs/sdk-usage.md
- docs/sdk-usage_CN.md
- docs/sdk-watcher.md
- docs/sdk-watcher_CN.md
## Markdown Headings
### docs/FEATURE_CHANGES_PLUSPLUS.md
- # cliproxyapi++ Feature Change Reference (`++` vs baseline)
- ## 1. Architecture Changes
- ## 2. Authentication and Identity Changes
- ## 3. Provider and Model Routing Changes
- ## 4. Security and Governance Changes
- ## 5. Operations and Delivery Changes
- ## 6. API and Compatibility Surface
- ## 7. Migration Impact Summary
### docs/README.md
- # cliproxyapi++ Documentation Index
- ## 📚 Documentation Structure
- ## 🚀 Quick Start
- ## 📖 Feature Documentation
- ### 1. Library-First Architecture
- ### 2. Enterprise Authentication
- ### 3. Security Hardening
- ### 4. High-Scale Operations
- ### 5. Provider Registry
- ## 🔧 API Documentation
- ### OpenAI-Compatible API
- ### Management API
- ### Operations API
- ## 🛠️ SDK Documentation
- ### Go SDK
- ## 🚀 Getting Started
- ### 1. Installation
- ### 2. Configuration
- ### 3. Add Credentials
- ### 4. Start Service
- ### 5. Make Request
- ## 🔍 Troubleshooting
- ### Common Issues
- ### Debug Mode
- ### Get Help
- ## 📊 Comparison: cliproxyapi++ vs Mainline
- ## 📝 Contributing
- ## 🔐 Security
- ## 📜 License
- ## 🗺️ Documentation Map
- ## 🤝 Community
### docs/docsets/agent/index.md
- # Agent Operator Docset
- ## Operator Focus
### docs/docsets/agent/operating-model.md
- # Agent Operating Model
- ## Execution Loop
### docs/docsets/developer/external/index.md
- # External Developer Docset
- ## Start Here
### docs/docsets/developer/external/integration-quickstart.md
- # Integration Quickstart
### docs/docsets/developer/internal/architecture.md
- # Internal Architecture
- ## Core Boundaries
- ## Maintainer Rules
### docs/docsets/developer/internal/index.md
- # Internal Developer Docset
- ## Read First
### docs/docsets/index.md
- # Docsets
- ## Developer
- ## User
- ## Agent
### docs/docsets/user/index.md
- # Technical User Docset
- ## Core Paths
### docs/docsets/user/quickstart.md
- # Technical User Quickstart
### docs/features/architecture/DEV.md
- # Developer Guide: Extending Library-First Architecture
- ## Contributing to pkg/llmproxy
- ## Project Structure
- ## Adding a New Provider
- ### Step 1: Define Provider Configuration
- ### Step 2: Implement Translator Interface
- ### Step 3: Implement Provider Executor
- ### Step 4: Register Provider
- ### Step 5: Add Tests
- ## Custom Authentication Flows
- ### Implementing OAuth
- ### Implementing Device Flow
- ## Performance Optimization
- ### Connection Pooling
- ### Rate Limiting Optimization
- ### Caching Strategy
- ## Testing Guidelines
- ### Unit Tests
- ### Integration Tests
- ### Contract Tests
- ## Submitting Changes
- ## API Stability
### docs/features/architecture/SPEC.md
- # Technical Specification: Library-First Architecture (pkg/llmproxy)
- ## Overview
- ## Architecture Migration
- ### Before: Mainline Structure
- ### After: cliproxyapi++ Structure
- ## Core Components
- ### 1. Translation Engine (`pkg/llmproxy/translator`)
- ### 2. Provider Execution (`pkg/llmproxy/provider`)
- ### 3. Configuration Management (`pkg/llmproxy/config`)
- ### 4. Watcher & Synthesis (`pkg/llmproxy/watcher`)
- ## Data Flow
- ### Request Processing Flow
- ### Configuration Reload Flow
- ### Token Refresh Flow
- ## Reusability Patterns
- ### Embedding as Library
- ### Custom Provider Integration
- ### Extending Configuration
- ## Performance Characteristics
- ### Memory Footprint
- ### Concurrency Model
- ### Throughput
- ## Security Considerations
- ### Public API Stability
- ### Input Validation
- ### Error Propagation
- ## Migration Guide
- ### From Mainline internal/
- ### Function Compatibility
- ## Testing Strategy
- ### Unit Tests
- ### Integration Tests
- ### Contract Tests
### docs/features/architecture/USER.md
- # User Guide: Library-First Architecture
- ## What is "Library-First"?
- ## Why Use the Library?
- ### Benefits Over Standalone CLI
## Detailed File Snapshots
### FILE: .goreleaser.yml
0001: builds:
0002: - id: "cliproxyapi-plusplus"
0003: env:
0004: - CGO_ENABLED=0
0005: goos:
0006: - linux
0007: - windows
0008: - darwin
0009: goarch:
0010: - amd64
0011: - arm64
0012: main: ./cmd/server/
0013: binary: cliproxyapi++
0014: ldflags:
0015: - -s -w -X 'main.Version={{.Version}}-++' -X 'main.Commit={{.ShortCommit}}' -X 'main.BuildDate={{.Date}}'
0016: archives:
0017: - id: "cliproxyapi-plusplus"
0018: format: tar.gz
0019: format_overrides:
0020: - goos: windows
0021: format: zip
0022: files:
0023: - LICENSE
0024: - README.md
0025: - README_CN.md
0026: - config.example.yaml
0027:
0028: checksum:
0029: name_template: 'checksums.txt'
0030:
0031: snapshot:
0032: name_template: "{{ incpatch .Version }}-next"
0033:
0034: changelog:
0035: sort: asc
0036: filters:
0037: exclude:
0038: - '^docs:'
0039: - '^test:'
### FILE: CONTRIBUTING.md
0001: # Contributing to cliproxyapi++
0002:
0003: First off, thank you for considering contributing to **cliproxyapi++**! It's people like you who make this tool better for everyone.
0004:
0005: ## Code of Conduct
0006:
0007: By participating in this project, you agree to abide by our [Code of Conduct](CODE_OF_CONDUCT.md) (coming soon).
0008:
0009: ## How Can I Contribute?
0010:
0011: ### Reporting Bugs
0012: - Use the [Bug Report](https://github.com/KooshaPari/cliproxyapi-plusplus/issues/new?template=bug_report.md) template.
0013: - Provide a clear and descriptive title.
0014: - Describe the exact steps to reproduce the problem.
0015:
0016: ### Suggesting Enhancements
0017: - Check the [Issues](https://github.com/KooshaPari/cliproxyapi-plusplus/issues) to see if the enhancement has already been suggested.
0018: - Use the [Feature Request](https://github.com/KooshaPari/cliproxyapi-plusplus/issues/new?template=feature_request.md) template.
0019:
0020: ### Pull Requests
0021: 1. Fork the repo and create your branch from `main`.
0022: 2. If you've added code that should be tested, add tests.
0023: 3. If you've changed APIs, update the documentation.
0024: 4. Ensure the test suite passes (`go test ./...`).
0025: 5. Make sure your code lints (`golangci-lint run`).
0026:
0027: #### Which repository to use?
0028: - **Third-party provider support**: Submit your PR directly to [KooshaPari/cliproxyapi-plusplus](https://github.com/KooshaPari/cliproxyapi-plusplus).
0029: - **Core logic improvements**: If the change is not specific to a third-party provider, please propose it to the [mainline project](https://github.com/router-for-me/CLIProxyAPI) first.
0030:
0031: ## Governance
0032:
0033: This project follows a community-driven governance model. Major architectural decisions are discussed in Issues before implementation.
0034:
0035: ### Path Guard
0036: We use a `pr-path-guard` to protect critical translator logic. Changes to these paths require explicit review from project maintainers to ensure security and stability.
0037:
0038: ---
0039: Thank you for your contributions!
### FILE: README.md
0001: # cliproxyapi++ 🚀
0002:
0003: [](https://goreportcard.com/report/github.com/KooshaPari/cliproxyapi-plusplus)
0004: [](https://opensource.org/licenses/MIT)
0005: [](https://hub.docker.com/r/kooshapari/cliproxyapi-plusplus)
0006: [](https://github.com/KooshaPari/cliproxyapi-plusplus/releases)
0007:
0008: English | [中文](README_CN.md)
0009:
0010: **cliproxyapi++** is the definitive high-performance, security-hardened fork of [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI). Designed with a "Defense in Depth" philosophy and a "Library-First" architecture, it provides an OpenAI-compatible interface for proprietary LLMs with enterprise-grade stability.
0011:
0012: ---
0013:
0014: ## 🏆 Deep Dive: The `++` Advantage
0015:
0016: Why choose **cliproxyapi++** over the mainline? While the mainline focus is on open-source stability, the `++` variant is built for high-scale, production environments where security, automated lifecycle management, and broad provider support are critical.
0017:
0018: Full feature-by-feature change reference:
0019:
0020: - **[Feature Changes in ++](./docs/FEATURE_CHANGES_PLUSPLUS.md)**
0021:
0022: ### 📊 Feature Comparison Matrix
0023:
0024: | Feature | Mainline | CLIProxyAPI+ | **cliproxyapi++** |
0025: | :--- | :---: | :---: | :---: |
0026: | **Core Proxy Logic** | ✅ | ✅ | ✅ |
0027: | **Basic Provider Support** | ✅ | ✅ | ✅ |
0028: | **Standard UI** | ❌ | ✅ | ✅ |
0029: | **Advanced Auth (Kiro/Copilot)** | ❌ | ⚠️ | ✅ **(Full Support)** |
0030: | **Background Token Refresh** | ❌ | ❌ | ✅ **(Auto-Refresh)** |
0031: | **Security Hardening** | Basic | Basic | ✅ **(Enterprise-Grade)** |
0032: | **Rate Limiting & Cooldown** | ❌ | ❌ | ✅ **(Intelligent)** |
0033: | **Core Reusability** | `internal/` | `internal/` | ✅ **(`pkg/llmproxy`)** |
0034: | **CI/CD Pipeline** | Basic | Basic | ✅ **(Signed/Multi-arch)** |
0035:
0036: ---
0037:
0038: ## 🔍 Technical Differences & Hardening
0039:
0040: ### 1. Architectural Evolution: `pkg/llmproxy`
0041: Unlike the mainline which keeps its core logic in `internal/` (preventing external Go projects from importing it), **cliproxyapi++** has refactored its entire translation and proxying engine into a clean, public `pkg/llmproxy` library.
0042: * **Reusability**: Import the proxy logic directly into your own Go applications.
0043: * **Decoupling**: Configuration management is strictly separated from execution logic.
0044:
0045: ### 2. Enterprise Authentication & Lifecycle
0046: * **Full GitHub Copilot Integration**: Not just an API wrapper. `++` includes a full OAuth device flow, per-credential quota tracking, and intelligent session management.
0047: * **Kiro (AWS CodeWhisperer) 2.0**: A custom-built web UI (`/v0/oauth/kiro`) for browser-based AWS Builder ID and Identity Center logins.
0048: * **Background Token Refresh**: A dedicated worker service monitors tokens and automatically refreshes them 10 minutes before expiration, ensuring zero downtime for your agents.
0049:
0050: ### 3. Security Hardening ("Defense in Depth")
0051: * **Path Guard**: A custom GitHub Action workflow (`pr-path-guard`) that prevents any unauthorized changes to critical `internal/translator/` logic during PRs.
0052: * **Device Fingerprinting**: Generates unique, immutable device identifiers to satisfy strict provider security checks and prevent account flagging.
0053: * **Hardened Docker Base**: Built on a specific, audited Alpine 3.22.0 layer with minimal packages, reducing the potential attack surface.
0054:
0055: ### 4. High-Scale Operations
0056: * **Intelligent Cooldown**: Automated "cooling" mechanism that detects provider-side rate limits and intelligently pauses requests to specific providers while routing others.
0057: * **Unified Model Converter**: A sophisticated mapping layer that allows you to request `claude-3-5-sonnet` and have the proxy automatically handle the specific protocol requirements of the target provider (Vertex, AWS, Anthropic, etc.).
0058:
0059: ---
0060:
0061: ## 🚀 Getting Started
0062:
0063: ### Prerequisites
0064: - [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/)
0065: - OR [Go 1.26+](https://golang.org/dl/)
0066:
0067: ### One-Command Deployment (Docker)
0068:
0069: ```bash
0070: # Setup deployment
0071: mkdir -p ~/cliproxy && cd ~/cliproxy
0072: curl -o config.yaml https://raw.githubusercontent.com/KooshaPari/cliproxyapi-plusplus/main/config.example.yaml
0073:
0074: # Create compose file
0075: cat > docker-compose.yml << 'EOF'
0076: services:
0077: cliproxy:
0078: image: KooshaPari/cliproxyapi-plusplus:latest
0079: container_name: cliproxyapi++
0080: ports: ["8317:8317"]
0081: volumes:
0082: - ./config.yaml:/CLIProxyAPI/config.yaml
0083: - ./auths:/root/.cli-proxy-api
0084: - ./logs:/CLIProxyAPI/logs
0085: restart: unless-stopped
0086: EOF
0087:
0088: docker compose up -d
0089: ```
0090:
0091: ---
0092:
0093: ## 🛠️ Advanced Usage
0094:
0095: ### Extended Provider Support
0096: `cliproxyapi++` supports a massive registry of providers out-of-the-box:
0097: * **Direct**: Claude, Gemini, OpenAI, Mistral, Groq, DeepSeek.
0098: * **Aggregators**: OpenRouter, Together AI, Fireworks AI, Novita AI, SiliconFlow.
0099: * **Proprietary**: Kiro (AWS), GitHub Copilot, Roo Code, Kilo AI, MiniMax.
0100:
0101: ### API Specification
0102: The proxy provides two main API surfaces:
0103: 1. **OpenAI Interface**: `/v1/chat/completions` and `/v1/models` (Full parity).
0104: 2. **Management Interface**:
0105: * `GET /v0/config`: Inspect current (hot-reloaded) config.
0106: * `GET /v0/oauth/kiro`: Interactive Kiro auth UI.
0107: * `GET /v0/logs`: Real-time log inspection.
0108:
0109: ---
0110:
0111: ## 🤝 Contributing
0112:
0113: We maintain strict quality gates to preserve the "hardened" status of the project:
0114: 1. **Linting**: Must pass `golangci-lint` with zero warnings.
0115: 2. **Coverage**: All new translator logic MUST include unit tests.
0116: 3. **Governance**: Changes to core `pkg/` logic require a corresponding Issue discussion.
0117:
0118: See **[CONTRIBUTING.md](CONTRIBUTING.md)** for more details.
0119:
0120: ---
0121:
0122: ## 📚 Documentation
0123:
0124: - **[Docsets](./docs/docsets/)** — Role-oriented documentation sets.
0125: - [Developer (Internal)](./docs/docsets/developer/internal/)
0126: - [Developer (External)](./docs/docsets/developer/external/)
0127: - [Technical User](./docs/docsets/user/)
0128: - [Agent Operator](./docs/docsets/agent/)
0129: - **[Feature Changes in ++](./docs/FEATURE_CHANGES_PLUSPLUS.md)** — Comprehensive list of `++` differences and impacts.
0130: - **[Docs README](./docs/README.md)** — Core docs map.
0131:
0132: ---
0133:
0134: ## 🚢 Docs Deploy
0135:
0136: Local VitePress docs:
0137:
0138: ```bash
0139: cd docs
0140: npm install
0141: npm run docs:dev
0142: npm run docs:build
0143: ```
0144:
0145: GitHub Pages:
0146:
0147: - Workflow: `.github/workflows/vitepress-pages.yml`
0148: - URL convention: `https://<owner>.github.io/cliproxyapi-plusplus/`
0149:
0150: ---
0151:
0152: ## 📜 License
0153:
0154: Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
0155:
0156: ---
0157:
0158: <p align="center">
0159: <b>Hardened AI Infrastructure for the Modern Agentic Stack.</b><br>
0160: Built with ❤️ by the community.
0161: </p>
### FILE: README_CN.md
0001: # cliproxyapi++ 🚀
0002:
0003: [](https://goreportcard.com/report/github.com/KooshaPari/cliproxyapi-plusplus)
0004: [](https://opensource.org/licenses/MIT)
0005: [](https://hub.docker.com/r/kooshapari/cliproxyapi-plusplus)
0006: [](https://github.com/KooshaPari/cliproxyapi-plusplus/releases)
0007:
0008: [English](README.md) | 中文
0009:
0010: **cliproxyapi++** 是 [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI) 的高性能、经过安全加固的终极分支版本。它秉持“纵深防御”的开发理念和“库优先”的架构设计,为多种主流及私有大模型提供 OpenAI 兼容接口,并具备企业级稳定性。
0011:
0012: ---
0013:
0014: ## 🏆 深度对比:`++` 版本的优势
0015:
0016: 为什么选择 **cliproxyapi++** 而不是主线版本?虽然主线版本专注于开源社区的稳定性,但 `++` 版本则是为高并发、生产级环境而设计的,在安全性、自动化生命周期管理和广泛的提供商支持方面具有显著优势。
0017:
0018: ### 📊 功能对比矩阵
0019:
0020: | 功能特性 | 主线版本 | CLIProxyAPI+ | **cliproxyapi++** |
0021: | :--- | :---: | :---: | :---: |
0022: | **核心代理逻辑** | ✅ | ✅ | ✅ |
0023: | **基础模型支持** | ✅ | ✅ | ✅ |
0024: | **标准 Web UI** | ❌ | ✅ | ✅ |
0025: | **高级认证 (Kiro/Copilot)** | ❌ | ⚠️ | ✅ **(完整支持)** |
0026: | **后台令牌自动刷新** | ❌ | ❌ | ✅ **(自动刷新)** |
0027: | **安全加固** | 基础 | 基础 | ✅ **(企业级)** |
0028: | **频率限制与冷却** | ❌ | ❌ | ✅ **(智能路由)** |
0029: | **核心逻辑复用** | `internal/` | `internal/` | ✅ **(`pkg/llmproxy`)** |
0030: | **CI/CD 流水线** | 基础 | 基础 | ✅ **(签名/多架构)** |
0031:
0032: ---
0033:
0034: ## 🔍 技术差异与安全加固
0035:
0036: ### 1. 架构演进:`pkg/llmproxy`
0037: 主线版本将核心逻辑保留在 `internal/` 目录下(这会导致外部 Go 项目无法直接导入),而 **cliproxyapi++** 已将整个翻译和代理引擎重构为清晰、公开的 `pkg/llmproxy` 库。
0038: * **可复用性**: 您可以直接在自己的 Go 应用程序中导入代理逻辑。
0039: * **解耦**: 实现了配置管理与执行逻辑的严格分离。
0040:
0041: ### 2. 企业级身份认证与生命周期管理
0042: * **完整 GitHub Copilot 集成**: 不仅仅是 API 包装。`++` 包含完整的 OAuth 设备流登录、每个凭据的额度追踪以及智能会话管理。
0043: * **Kiro (AWS CodeWhisperer) 2.0**: 提供定制化的 Web 界面 (`/v0/oauth/kiro`),支持通过浏览器进行 AWS Builder ID 和 Identity Center 登录。
0044: * **后台令牌刷新**: 专门的后台服务实时监控令牌状态,并在过期前 10 分钟自动刷新,确保智能体任务零停机。
0045:
0046: ### 3. 安全加固(“纵深防御”)
0047: * **路径保护 (Path Guard)**: 定制的 GitHub Action 工作流 (`pr-path-guard`),防止在 PR 过程中对关键的 `internal/translator/` 逻辑进行任何未经授权的修改。
0048: * **设备指纹**: 生成唯一且不可变的设备标识符,以满足严格的提供商安全检查,防止账号被标记。
0049: * **加固的 Docker 基础镜像**: 基于经过审计的 Alpine 3.22.0 层构建,仅包含最少软件包,显著降低了潜在的攻击面。
0050:
0051: ### 4. 高规模运营支持
0052: * **智能冷却机制**: 自动化的“冷却”系统可检测提供商端的频率限制,并智能地暂停对特定供应商的请求,同时将流量路由至其他可用节点。
0053: * **统一模型转换器**: 复杂的映射层,允许您请求 `claude-3-5-sonnet`,而由代理自动处理目标供应商(如 Vertex、AWS、Anthropic 等)的具体协议要求。
0054:
0055: ---
0056:
0057: ## 🚀 快速开始
0058:
0059: ### 先决条件
0060: - 已安装 [Docker](https://docs.docker.com/get-docker/) 和 [Docker Compose](https://docs.docker.com/compose/install/)
0061: - 或安装 [Go 1.26+](https://golang.org/dl/)
0062:
0063: ### 一键部署 (Docker)
0064:
0065: ```bash
0066: # 设置部署目录
0067: mkdir -p ~/cliproxy && cd ~/cliproxy
0068: curl -o config.yaml https://raw.githubusercontent.com/KooshaPari/cliproxyapi-plusplus/main/config.example.yaml
0069:
0070: # 创建 compose 文件
0071: cat > docker-compose.yml << 'EOF'
0072: services:
0073: cliproxy:
0074: image: KooshaPari/cliproxyapi-plusplus:latest
0075: container_name: cliproxyapi++
0076: ports: ["8317:8317"]
0077: volumes:
0078: - ./config.yaml:/CLIProxyAPI/config.yaml
0079: - ./auths:/root/.cli-proxy-api
0080: - ./logs:/CLIProxyAPI/logs
0081: restart: unless-stopped
0082: EOF
0083:
0084: docker compose up -d
0085: ```
0086:
0087: ---
0088:
0089: ## 🛠️ 高级用法
0090:
0091: ### 扩展的供应商支持
0092: `cliproxyapi++` 开箱即用地支持海量模型注册:
0093: * **直接接入**: Claude, Gemini, OpenAI, Mistral, Groq, DeepSeek.
0094: * **聚合器**: OpenRouter, Together AI, Fireworks AI, Novita AI, SiliconFlow.
0095: * **私有协议**: Kiro (AWS), GitHub Copilot, Roo Code, Kilo AI, MiniMax.
0096:
0097: ### API 规范
0098: 代理提供两个主要的 API 表面:
0099: 1. **OpenAI 兼容接口**: `/v1/chat/completions` 和 `/v1/models`。
0100: 2. **管理接口**:
0101: * `GET /v0/config`: 查看当前(支持热重载)的配置。
0102: * `GET /v0/oauth/kiro`: 交互式 Kiro 认证界面。
0103: * `GET /v0/logs`: 实时日志查看。
0104:
0105: ---
0106:
0107: ## 🤝 贡献指南
0108:
0109: 我们维持严格的质量门禁,以保持项目的“加固”状态:
0110: 1. **代码风格**: 必须通过 `golangci-lint` 检查,且无任何警告。
0111: 2. **测试覆盖**: 所有的翻译器逻辑必须包含单元测试。
0112: 3. **治理**: 对 `pkg/` 核心逻辑的修改需要先在 Issue 中进行讨论。
0113:
0114: 请参阅 **[CONTRIBUTING.md](CONTRIBUTING.md)** 了解更多详情。
0115:
0116: ---
0117:
0118: ## 📜 开源协议
0119:
0120: 本项目根据 MIT 许可证发行。详情请参阅 [LICENSE](LICENSE) 文件。
0121:
0122: ---
0123:
0124: <p align="center">
0125: <b>为现代智能体技术栈打造的加固级 AI 基础设施。</b><br>
0126: 由社区倾力打造 ❤️
0127: </p>
### FILE: SECURITY.md
0001: # Security Policy
0002:
0003: ## Supported Versions
0004:
0005: | Version | Supported |
0006: | ------- | ------------------ |
0007: | 6.0.x | :white_check_mark: |
0008: | < 6.0 | :x: |
0009:
0010: ## Reporting a Vulnerability
0011:
0012: We take the security of **cliproxyapi++** seriously. If you discover a security vulnerability, please do NOT open a public issue. Instead, report it privately.
0013:
0014: Please report any security concerns directly to the maintainers at [kooshapari@gmail.com](mailto:kooshapari@gmail.com) (assuming this as the email for KooshaPari).
0015:
0016: ### What to include
0017: - A detailed description of the vulnerability.
0018: - Steps to reproduce (proof of concept).
0019: - Potential impact.
0020: - Any suggested fixes or mitigations.
0021:
0022: We will acknowledge your report within 48 hours and provide a timeline for resolution.
0023:
0024: ## Hardening Measures
0025:
0026: **cliproxyapi++** incorporates several security-hardening features:
0027:
0028: - **Minimal Docker Images**: Based on Alpine Linux to reduce attack surface.
0029: - **Path Guard**: GitHub Actions that monitor and protect critical translation and core logic files.
0030: - **Rate Limiting**: Built-in mechanisms to prevent DoS attacks.
0031: - **Device Fingerprinting**: Enhanced authentication security using device-specific metadata.
0032: - **Dependency Scanning**: Automatic scanning for vulnerable Go modules.
0033:
0034: ---
0035: Thank you for helping keep the community secure!
### FILE: Taskfile.yml
0001: # Taskfile for cliproxyapi++
0002: # Unified DX for building, testing, and managing the proxy.
0003:
0004: version: '3'
0005:
0006: vars:
0007: BINARY_NAME: cliproxyapi++
0008: DOCKER_IMAGE: kooshapari/cliproxyapi-plusplus
0009: GO_FILES:
0010: sh: find . -name "*.go" | grep -v "vendor"
0011:
0012: tasks:
0013: default:
0014: cmds:
0015: - task --list
0016: silent: true
0017:
0018: # -- Build & Run --
0019: build:
0020: desc: "Build the cliproxyapi++ binary"
0021: cmds:
0022: - go build -o {{.BINARY_NAME}} ./cmd/server
0023: sources:
0024: - "**/*.go"
0025: - "go.mod"
0026: - "go.sum"
0027: generates:
0028: - "{{.BINARY_NAME}}"
0029:
0030: run:
0031: desc: "Run the proxy locally with default config"
0032: deps: [build]
0033: cmds:
0034: - ./{{.BINARY_NAME}} --config config.example.yaml
0035:
0036: # -- Testing & Quality --
0037: test:
0038: desc: "Run all Go tests"
0039: cmds:
0040: - go test -v ./...
0041:
0042: lint:
0043: desc: "Run golangci-lint"
0044: cmds:
0045: - golangci-lint run ./...
0046:
0047: tidy:
0048: desc: "Tidy Go modules"
0049: cmds:
0050: - go mod tidy
0051:
0052: # -- Docker Operations --
0053: docker:build:
0054: desc: "Build Docker image locally"
0055: cmds:
0056: - docker build -t {{.DOCKER_IMAGE}}:local .
0057:
0058: docker:run:
0059: desc: "Run proxy via Docker"
0060: cmds:
0061: - docker compose up -d
0062:
0063: docker:stop:
0064: desc: "Stop Docker proxy"
0065: cmds:
0066: - docker compose down
0067:
0068: # -- Health & Diagnostics (UX/DX) --
0069: doctor:
0070: desc: "Check environment health for cliproxyapi++"
0071: cmds:
0072: - |
0073: echo "Checking Go version..."
0074: go version
0075: echo "Checking dependencies..."
0076: if [ ! -f go.mod ]; then echo "❌ go.mod missing"; exit 1; fi
0077: echo "Checking config template..."
0078: if [ ! -f config.example.yaml ]; then echo "❌ config.example.yaml missing"; exit 1; fi
0079: echo "Checking Docker..."
0080: docker --version || echo "⚠️ Docker not installed"
0081: echo "✅ cliproxyapi++ environment looks healthy!"
0082:
0083: # -- Agent Experience (AX) --
0084: ax:spec:
0085: desc: "Generate or verify agent-readable specs"
0086: cmds:
0087: - echo "Checking for llms.txt..."
0088: - if [ ! -f llms.txt ]; then echo "⚠️ llms.txt missing"; else echo "✅ llms.txt present"; fi
### FILE: cmd/codegen/main.go
0001: package main
0002:
0003: import (
0004: "bytes"
0005: "encoding/json"
0006: "fmt"
0007: "go/format"
0008: "log"
0009: "os"
0010: "path/filepath"
0011: "strings"
0012: "text/template"
0013: )
0014:
0015: type ProviderSpec struct {
0016: Name string `json:"name"`
0017: YAMLKey string `json:"yaml_key"`
0018: GoName string `json:"go_name"`
0019: BaseURL string `json:"base_url"`
0020: EnvVars []string `json:"env_vars"`
0021: DefaultModels []OpenAICompatibilityModel `json:"default_models"`
0022: }
0023:
0024: type OpenAICompatibilityModel struct {
0025: Name string `json:"name"`
0026: Alias string `json:"alias"`
0027: }
0028:
0029: const configTemplate = `// Code generated by github.com/router-for-me/CLIProxyAPI/v6/cmd/codegen; DO NOT EDIT.
0030: package config
0031:
0032: import "strings"
0033:
0034: // GeneratedConfig contains generated config fields for dedicated providers.
0035: type GeneratedConfig struct {
0036: {{- range .Providers }}
0037: {{- if .YAMLKey }}
0038: // {{ .Name | goTitle }}Key defines {{ .Name | goTitle }} configurations.
0039: {{ .Name | goTitle }}Key []{{ .Name | goTitle }}Key {{ printf "` + "`" + `yaml:\"%s\" json:\"%s\"` + "`" + `" .YAMLKey .YAMLKey }}
0040: {{- end }}
0041: {{- end }}
0042: }
0043:
0044: {{ range .Providers }}
0045: {{- if .YAMLKey }}
0046: // {{ .Name | goTitle }}Key is a type alias for OAICompatProviderConfig for the {{ .Name }} provider.
0047: type {{ .Name | goTitle }}Key = OAICompatProviderConfig
0048: {{- end }}
0049: {{- end }}
0050:
0051: // SanitizeGeneratedProviders trims whitespace from generated provider credential fields.
0052: func (cfg *Config) SanitizeGeneratedProviders() {
0053: if cfg == nil {
0054: return
0055: }
0056: {{- range .Providers }}
0057: {{- if .YAMLKey }}
0058: for i := range cfg.{{ .Name | goTitle }}Key {
0059: entry := &cfg.{{ .Name | goTitle }}Key[i]
0060: entry.TokenFile = strings.TrimSpace(entry.TokenFile)
0061: entry.APIKey = strings.TrimSpace(entry.APIKey)
0062: entry.BaseURL = strings.TrimSpace(entry.BaseURL)
0063: entry.ProxyURL = strings.TrimSpace(entry.ProxyURL)
0064: }
0065: {{- end }}
0066: {{- end }}
0067: }
0068: `
0069:
0070: const synthTemplate = `// Code generated by github.com/router-for-me/CLIProxyAPI/v6/cmd/codegen; DO NOT EDIT.
0071: package synthesizer
0072:
0073: import (
0074: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/config"
0075: )
0076:
0077: // getDedicatedProviderEntries returns the config entries for a dedicated provider.
0078: func (s *ConfigSynthesizer) getDedicatedProviderEntries(p config.ProviderSpec, cfg *config.Config) []config.OAICompatProviderConfig {
0079: switch p.YAMLKey {
0080: {{- range .Providers }}
0081: {{- if .YAMLKey }}
0082: case "{{ .YAMLKey }}":
0083: return cfg.{{ .Name | goTitle }}Key
0084: {{- end }}
0085: {{- end }}
0086: }
0087: return nil
0088: }
0089: `
0090:
0091: const registryTemplate = `// Code generated by github.com/router-for-me/CLIProxyAPI/v6/cmd/codegen; DO NOT EDIT.
0092: package config
0093:
0094: // AllProviders defines the registry of all supported LLM providers.
0095: // This is the source of truth for generated config fields and synthesizers.
0096: var AllProviders = []ProviderSpec{
0097: {{- range .Providers }}
0098: {
0099: Name: "{{ .Name }}",
0100: YAMLKey: "{{ .YAMLKey }}",
0101: GoName: "{{ .GoName }}",
0102: BaseURL: "{{ .BaseURL }}",
0103: {{- if .EnvVars }}
0104: EnvVars: []string{
0105: {{- range .EnvVars }}"{{ . }}",{{ end -}}
0106: },
0107: {{- end }}
0108: {{- if .DefaultModels }}
0109: DefaultModels: []OpenAICompatibilityModel{
0110: {{- range .DefaultModels }}
0111: {Name: "{{ .Name }}", Alias: "{{ .Alias }}"},
0112: {{- end }}
0113: },
0114: {{- end }}
0115: },
0116: {{- end }}
0117: }
0118: `
0119:
0120: const diffTemplate = `// Code generated by github.com/router-for-me/CLIProxyAPI/v6/cmd/codegen; DO NOT EDIT.
0121: package diff
0122:
0123: import (
0124: "fmt"
0125: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/config"
0126: )
0127:
0128: // BuildConfigChangeDetailsGeneratedProviders computes changes for generated dedicated providers.
0129: func BuildConfigChangeDetailsGeneratedProviders(oldCfg, newCfg *config.Config, changes *[]string) {
0130: {{- range .Providers }}
0131: {{- if .YAMLKey }}
0132: if len(oldCfg.{{ .Name | goTitle }}Key) != len(newCfg.{{ .Name | goTitle }}Key) {
0133: *changes = append(*changes, fmt.Sprintf("{{ .Name }}: count %d -> %d", len(oldCfg.{{ .Name | goTitle }}Key), len(newCfg.{{ .Name | goTitle }}Key)))
0134: }
0135: {{- end }}
0136: {{- end }}
0137: }
0138: `
0139:
0140: func main() {
0141: jsonPath := "pkg/llmproxy/config/providers.json"
0142: configDir := "pkg/llmproxy/config"
0143: authDir := "pkg/llmproxy/auth"
0144:
0145: if _, err := os.Stat(jsonPath); os.IsNotExist(err) {
0146: // Try fallback for when run from within the config directory
0147: jsonPath = "providers.json"
0148: configDir = "."
0149: authDir = "../auth"
0150: }
0151:
0152: data, err := os.ReadFile(jsonPath)
0153: if err != nil {
0154: log.Fatalf("failed to read providers.json from %s: %v", jsonPath, err)
0155: }
0156:
0157: var providers []ProviderSpec
0158: if err := json.Unmarshal(data, &providers); err != nil {
0159: log.Fatalf("failed to unmarshal providers: %v", err)
0160: }
### FILE: cmd/server/main.go
0001: // Package main provides the entry point for the CLI Proxy API server.
0002: // This server acts as a proxy that provides OpenAI/Gemini/Claude compatible API interfaces
0003: // for CLI models, allowing CLI models to be used with tools and libraries designed for standard AI APIs.
0004: package main
0005:
0006: import (
0007: "context"
0008: "errors"
0009: "flag"
0010: "fmt"
0011: "io"
0012: "io/fs"
0013: "net/url"
0014: "os"
0015: "path/filepath"
0016: "strings"
0017: "time"
0018:
0019: "github.com/joho/godotenv"
0020: configaccess "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/access/config_access"
0021: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/auth/kiro"
0022: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/buildinfo"
0023: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/cmd"
0024: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/config"
0025: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/logging"
0026: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/managementasset"
0027: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/misc"
0028: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/store"
0029: _ "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/translator"
0030: "github.com/router-for-me/CLIProxyAPI/v6/pkg/llmproxy/tui"