René's URL Explorer Experiment


Title: feat: add /usage slash command for DeepSeek API balance by al4xdev · Pull Request #216 · lessweb/deepcode-cli · GitHub

Open Graph Title: feat: add /usage slash command for DeepSeek API balance by al4xdev · Pull Request #216 · lessweb/deepcode-cli

X Title: feat: add /usage slash command for DeepSeek API balance by al4xdev · Pull Request #216 · lessweb/deepcode-cli

Description: Summary Add a /usage slash command that queries the DeepSeek API (GET /user/balance) and displays the user's credit balance and availability status in a dedicated bordered view. Motivation DeepSeek API users with prepaid credits have to visit the DeepSeek website to check their balance. This command brings that information directly into the CLI. Design The command opens a bordered view (same pattern as /mcp status). Press Esc to return to chat. Provider detection baseURL.includes("api.deepseek.com") → calls GET https://api.deepseek.com/user/balance Any other provider → shows error with current base URL Error handling Scenario Behavior Non-DeepSeek provider setErrorLine with base URL No API key configured setErrorLine HTTP error from API setErrorLine with status Network error setErrorLine with message Files Changed File Description packages/cli/src/ui/views/UsageView.tsx New -- bordered view component (+59) packages/cli/src/ui/core/slash-commands.ts +7 -- "usage" kind + built-in entry packages/cli/src/ui/views/App.tsx +49/-2 -- handleUsage callback + view routing packages/cli/src/ui/views/PromptInput.tsx +6/-1 -- command union type + handler packages/cli/src/tests/slash-commands.test.ts +1 -- built-in names assertion Verification npm run check -- typecheck 0 errors, lint 0 errors, format clean npm test -- all tests pass npm run build -- successful

Open Graph Description: Summary Add a /usage slash command that queries the DeepSeek API (GET /user/balance) and displays the user's credit balance and availability status in a dedicated bordered view. Motivation Deep...

X Description: Summary Add a /usage slash command that queries the DeepSeek API (GET /user/balance) and displays the user's credit balance and availability status in a dedicated bordered view. Motivation ...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/216

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0240234d-1a13-9c64-0494-7cbc0da00361
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id875C:31A9ED:EAF4B6:14327A3:6A4DED29
html-safe-nonce98a026bdf547620147e16b35e3207b667caa56fc2c7adbb5b34392ef270c85e5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzVDOjMxQTlFRDpFQUY0QjY6MTQzMjdBMzo2QTRERUQyOSIsInZpc2l0b3JfaWQiOiI4MDc2NDMyNzE5MTAwMTEyMTY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbd17196dc9fd03b8478141b7296ac3ac4e9b8c8f374b23154f5a2d11c8c0d141
hovercard-subject-tagpull_request:3967442980
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/216/files
twitter:imagehttps://avatars.githubusercontent.com/u/76815370?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/76815370?s=400&v=4
og:image:altSummary Add a /usage slash command that queries the DeepSeek API (GET /user/balance) and displays the user's credit balance and availability status in a dedicated bordered view. Motivation Deep...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/216/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F216%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F216%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/216/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/216/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/216/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/216/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 152 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 43 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
al4xdevhttps://github.com/al4xdev
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
al4xdev:feat/usage-commandhttps://github.com/al4xdev/deepcode-cli/tree/feat/usage-command
Conversation 2 https://github.com/lessweb/deepcode-cli/pull/216
Commits 2 https://github.com/lessweb/deepcode-cli/pull/216/commits
Checks 0 https://github.com/lessweb/deepcode-cli/pull/216/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/216/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/216/files
feat: add /usage slash command for DeepSeek API balance https://github.com/lessweb/deepcode-cli/pull/216/files#top
Show all changes 2 commits https://github.com/lessweb/deepcode-cli/pull/216/files
9af2be3 feat(cli): add /usage slash command for DeepSeek API balance al4xdev Jul 1, 2026 https://github.com/lessweb/deepcode-cli/pull/216/commits/9af2be35ee2b23f2682f9f99303926db3de18e8e
b5338dc refactor(cli): show /usage balance in dedicated view instead of syste… al4xdev Jul 1, 2026 https://github.com/lessweb/deepcode-cli/pull/216/commits/b5338dc923803a74eef549b1b050c370f16c7d54
Clear filters https://github.com/lessweb/deepcode-cli/pull/216/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/216/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/216/files
slash-commands.test.ts https://github.com/lessweb/deepcode-cli/pull/216/files#diff-21e84de1d0fa99525a673b0aa73e753171e6396f8eb53227e92f1c318456262f
slash-commands.ts https://github.com/lessweb/deepcode-cli/pull/216/files#diff-09b6a5a50bf9b1ebea432bd2b4b57bc629d855d29519cad30268ecfd54b008f9
App.tsx https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
PromptInput.tsx https://github.com/lessweb/deepcode-cli/pull/216/files#diff-5d8e980323ff4917576c504c2289cb958e611b01ff3a7de332fcf4725a2e7522
UsageView.tsx https://github.com/lessweb/deepcode-cli/pull/216/files#diff-b4dd0590b3dba55752a4c56c91c6fd5e853577e82a6a55918a4dee2783506d2b
packages/cli/src/tests/slash-commands.test.tshttps://github.com/lessweb/deepcode-cli/pull/216/files#diff-21e84de1d0fa99525a673b0aa73e753171e6396f8eb53227e92f1c318456262f
View file https://github.com/lessweb/deepcode-cli/blob/b5338dc923803a74eef549b1b050c370f16c7d54/packages/cli/src/tests/slash-commands.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/216/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-21e84de1d0fa99525a673b0aa73e753171e6396f8eb53227e92f1c318456262f
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-21e84de1d0fa99525a673b0aa73e753171e6396f8eb53227e92f1c318456262f
packages/cli/src/ui/core/slash-commands.tshttps://github.com/lessweb/deepcode-cli/pull/216/files#diff-09b6a5a50bf9b1ebea432bd2b4b57bc629d855d29519cad30268ecfd54b008f9
View file https://github.com/lessweb/deepcode-cli/blob/b5338dc923803a74eef549b1b050c370f16c7d54/packages/cli/src/ui/core/slash-commands.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/216/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-09b6a5a50bf9b1ebea432bd2b4b57bc629d855d29519cad30268ecfd54b008f9
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-09b6a5a50bf9b1ebea432bd2b4b57bc629d855d29519cad30268ecfd54b008f9
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-09b6a5a50bf9b1ebea432bd2b4b57bc629d855d29519cad30268ecfd54b008f9
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-09b6a5a50bf9b1ebea432bd2b4b57bc629d855d29519cad30268ecfd54b008f9
packages/cli/src/ui/views/App.tsxhttps://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
View file https://github.com/lessweb/deepcode-cli/blob/b5338dc923803a74eef549b1b050c370f16c7d54/packages/cli/src/ui/views/App.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/216/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-85bb709e32daf446ca90dc746b77c6d1cf092ec6a70d6471ec26786047093dfe
packages/cli/src/ui/views/PromptInput.tsxhttps://github.com/lessweb/deepcode-cli/pull/216/files#diff-5d8e980323ff4917576c504c2289cb958e611b01ff3a7de332fcf4725a2e7522
View file https://github.com/lessweb/deepcode-cli/blob/b5338dc923803a74eef549b1b050c370f16c7d54/packages/cli/src/ui/views/PromptInput.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/216/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-5d8e980323ff4917576c504c2289cb958e611b01ff3a7de332fcf4725a2e7522
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-5d8e980323ff4917576c504c2289cb958e611b01ff3a7de332fcf4725a2e7522
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-5d8e980323ff4917576c504c2289cb958e611b01ff3a7de332fcf4725a2e7522
https://github.com/lessweb/deepcode-cli/pull/216/files#diff-5d8e980323ff4917576c504c2289cb958e611b01ff3a7de332fcf4725a2e7522
packages/cli/src/ui/views/UsageView.tsxhttps://github.com/lessweb/deepcode-cli/pull/216/files#diff-b4dd0590b3dba55752a4c56c91c6fd5e853577e82a6a55918a4dee2783506d2b
View file https://github.com/lessweb/deepcode-cli/blob/b5338dc923803a74eef549b1b050c370f16c7d54/packages/cli/src/ui/views/UsageView.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/216/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.