internet-court/internet-court-skill / vendored/altlayer/altllm-portal-billing
altllm-portal-billing
VerifiedUse this skill when the user asks to inspect AltLLM Portal balance, redeem a promo code, review billing transactions, or view usage analytics by period, model, or API key using the local altllm CLI. Do NOT use for API key lifecycle management or payment-link execution.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 322 B |
| SKILL.md | skill md | 1.8 KB |
| references/cli-reference.md | markdown | 1.9 KB |
references/cli-reference.md
View on GitHub# AltLLM Portal Billing — CLI Reference
## Commands
### Balance
```bash
node dist/cli.js credit \
--base-url https://platform-api.altllm.ai
```
Alias: `node dist/cli.js balance`
`credit` passes through plan/model-access metadata when Portal returns it. Use it to inspect Personal tiers (`free`, `basic`, `pro`, `power`) or Business/Flex (`subscription_tier: "flex"`) status and allowed models. Flex can include normal AltLLM models plus Flex-only IDs such as `altllm-flex-gpt-5.5`, `altllm-flex-opus-4.7`, and `altllm-flex-gemini-3.1`, subject to backend access checks.
### Redeem promo
```bash
node dist/cli.js redeem-promo \
--base-url https://platform-api.altllm.ai \
--code PROMO-XXXX
```
### Transactions
```bash
node dist/cli.js transactions \
--base-url https://platform-api.altllm.ai \
--limit 20 \
--type usage
```
Representative stdout:
```json
{
"transactions": [],
"total": 0,
"page": 1,
"pages": 1,
"limit": 20
}
```
### Usage summary
```bash
node dist/cli.js usage-summary \
--base-url https://platform-api.altllm.ai
```
This endpoint currently returns the current calendar-month summary.
### Usage timeline
```bash
node dist/cli.js usage-timeline \
--base-url https://platform-api.altllm.ai
```
### Usage by model
```bash
node dist/cli.js usage-by-model \
--base-url https://platform-api.altllm.ai
```
### Usage by key
```bash
node dist/cli.js usage-by-key \
--base-url https://platform-api.altllm.ai
```
## Notes
- `credit` and `redeem-promo` pass through the API response body unchanged.
- This repo does not implement plan billing logic or bypass Portal/Gateway model-access checks.
- Transaction history and usage analytics are useful for validating gateway metering behavior.
- `usage-timeline`, `usage-by-model`, and `usage-by-key` default to the current UTC month.
- Usage commands accept either `--month` or a complete `--start-date` / `--end-date` range, but not both.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |