Feature request: allow gifting Command Code credits to another account
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by tracing the existing /extra and /usage flows and the Studio > Billing surface behind https://commandcode.ai/billing. Review how balances and usage/ledger history are handled before assessing the proposed /gift flow. Done means transfers handle the stated validation cases atomically and both balances and ledger entries can be verified between test accounts.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Command Code has no way to gift credits. I can buy extra credits for myself with /extra, and a team can pool credits, but I cannot send credits to another person's account.
That means gifting credits is impossible today. If I want to help a colleague, a friend learning to code, or someone I want to onboard, I have to pay for their plan or send them money separately, while the credits already sitting in my own balance go unused.
Expected Behavior
A way to send credits from my balance to another Command Code account, e.g. a "Gift credits" action in Studio > Billing or a /gift <username> <amount> command.
The sender's balance should decrease by the amount and the recipient's balance should increase by the same amount, both recorded in the usage/ledger history.
Actual Behavior
There is no gifting or transfer feature. Credits are tied to the account that bought them: extra credits bought via /extra stay on my balance. The only sharing supported is team billing, which pools credits at the team level and requires everyone to be on the same team. The docs list no way to send credits to another account.
Steps to reproduce the issue
- Run /usage or open https://commandcode.ai/billing and confirm you have credits.
- Look for any "gift", "transfer", or "send credits" action in the billing area or CLI.
- Run /extra: it only buys credits for your own account.
- Search /help and the docs for a gifting or transfer command.
- No gifting or transfer option exists.
Command Code Version
1.58.1
Operating System
macOS
Terminal/IDE
Terminal
Shell
zsh
Session file (optional)
No response
Fix prompt (optional)
Add credit gifting to Command Code. Credit balances live in the billing layer behind https://commandcode.ai/billing and the /extra and /usage flows. Add a way to transfer credits to another account by username: a "Gift credits" action in Studio > Billing plus a /gift <username> <amount> command with a confirmation step.
The transfer must debit the sender and credit the recipient atomically, validate that the recipient exists, reject self-transfers and insufficient balances, and record both sides in the usage/ledger history.
Check it by gifting a small amount between two test accounts and verifying both balances and ledger entries, plus the failure cases (unknown user, insufficient balance, self-transfer).
Additional context
OS: macOS 27.0
This is a feature request rather than a bug, but /feedback only offered the bug report template.
Related surfaces: /extra (buy on-demand credits at model cost, credits roll over and never expire), team billing (per-seat with credits pooled at the team level), and /usage.
No session file applies: this is a missing feature, not a reproducible crash.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4k
- Fork
- 350
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommandCodeAI/command-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#903 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#855 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CommandCodeAI/command-code#841 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#655 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#608 ·
Tất cả issue của CommandCodeAI/command-code
Issue tương tự
-
triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
app bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
-
Broadcast Documentation Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
kovidgoyal/kitty#10516 ·