{"repo":"htin1/toktop","free":true,"listed":false,"github":"https://github.com/htin1/toktop","clone":"git clone https://github.com/htin1/toktop.git","description":"llm usage monitor in terminal","language":"Rust","stars":171,"topics":["anthropic","llm","openai","rust","telemetry","terminal","tui"],"license":"MIT","category":"ai-agents","readme_excerpt":"\\ \\ \\ $$ $$ $$ $$ \\ / \\ $$ / \\ $$ \\ / \\ / \\ \\$$$$$$ $$$$$$\\ $$ / $$ \\$$$$$$ $$$$$$\\ $$$$$$\\ $$ $$ $$ $$ $$ $$ $$ $$ $$ $$ $$ \\ $$ / $$ $$$$$$\\ $$ \\ $$ / $$ $$ / $$ \\$$ $$ \\$$ $$ $$ \\$$\\ \\$$ $$ \\$$ $$ $$ $$ \\$$$$ \\$$$$$$ \\$$ \\$$ \\$$$$ \\$$$$$$ $$$$$$$ $$ $$ \\$$ htop but for llm tokens toktop is a terminal-based dashboard for OpenAI and Anthropic token usage and costs. It allows user (admin of their openai and anthropic accounts) to monitor their usage inside terminal without constantly jumping into different websites. Installation Usage Hotkeys - ←/→ - Switch between options columns (Provider, Metrics, Date Range, Group By) - ↑/↓ - Choosing options - h/l - Scrolling charts if scroll bar is present - r - Refresh data - q - Quit the application API Keys OPENAI It requires $OPENAI ADMIN KEY from https://platform.openai.com/settings/organization/admin-keys with READ permission to Management API Scope and Usage API Scope . It tracks two data: 1. Cost: GET /v1/organization/costs 2. Usage: - GET v1/organization/usage/completions - GET v1/organization/usage/embeddings - GET v1/organization/usage/images To group by API Keys, it also needs read access to the following endpoint: 1. Get project ids: GET v1/organization/projects 2. Get api key names from projects: GET v1/organization/projects/{project id}/api keys ANTHROPIC It requires $ANTHROPIC ADMIN KEY from https://console.anthropic.com/settings/admin-keys. It tracks two data: 1. Cost: GET /v1/organizations/cost report 2. Usage: GET /v1","default_branch":null,"files":null,"tree":[],"storefront":"/r/htin1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/htin1/toktop/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}