Infralens
Terminal dashboard for cloud infrastructure - domains, hosting, and AI spend across multiple providers.
Installation
# Run directly with uvx (no install needed)
uvx infralens
# Or install globally
uv tool install infralens
Quick Start
# First run launches setup wizard
infralens
# After setup, fetch data from your providers
infralens fetch
# Launch the dashboard
infralens
Features
- Unified Dashboard - Overview of domains, hosting, and AI spend
- Domain Management - Track expiry dates across GoDaddy, Namecheap, Cloudflare
- DNS Zones - View Cloudflare zones and status
- Hosting - Monitor Vercel projects and Fly.io apps
- AI Spend - Track OpenAI and Anthropic usage and costs
- Interactive Setup - Guided wizard for API key configuration
Keyboard Navigation
Dashboard
| Key | Action |
|---|---|
1-5 |
Jump to screen |
Tab |
Next screen / panel |
Enter |
Focus panels |
Esc |
Exit panel focus |
r |
Refresh data |
q |
Quit |
Setup Wizard
| Key | Action |
|---|---|
Up/Down |
Navigate fields |
Tab |
Next field |
Enter |
Continue |
Esc |
Back |
Providers
Registrars (Domain Management)
| Provider | Auth Method | What You Get |
|---|---|---|
| GoDaddy | API Key + Secret | All domains, expiry dates, auto-renew status |
| Namecheap | API Key (requires IP whitelist) | Domain list, expiry, lock status |
| Cloudflare | API Token | Registrar domains, zones |
Hosting
| Provider | Auth Method | What You Get |
|---|---|---|
| Vercel | CLI auth (vercel login) |
Projects, deployment URLs |
| Fly.io | CLI auth (fly auth login) |
Apps, status |
AI Providers
| Provider | Auth Method | What You Get |
|---|---|---|
| OpenAI | Admin API Key | Projects, usage, costs |
| Anthropic | Admin API Key | Workspaces, API keys, usage, costs |
Getting API Keys
GoDaddy
- Go to https://developer.godaddy.com/keys
- Create a Production API key
- Copy the Key and Secret
Cloudflare
- Go to https://dash.cloudflare.com/profile/api-tokens
- Create token with Read all resources template
- Copy the token (shown only once)
Namecheap
- Go to https://ap.www.namecheap.com/settings/tools/apiaccess
- Enable API access (may require support ticket for new accounts)
- Important: Add your public IP to the whitelist
- Copy your API Key
OpenAI
- Go to https://platform.openai.com/settings/organization/admin-keys
- Create new admin key (requires Owner role)
- Copy the key (starts with
sk-admin-)
Anthropic
- Go to https://console.anthropic.com/settings/admin-keys
- Create new admin key (requires Admin role)
- Copy the key (starts with
sk-ant-admin-)
Vercel & Fly.io
These use CLI authentication - no API keys needed:
npm i -g vercel && vercel login
brew install flyctl && fly auth login
Configuration
Credentials are stored in ~/.infralens/.env:
GODADDY_API_KEY=...
GODADDY_API_SECRET=...
CLOUDFLARE_API_TOKEN=...
NAMECHEAP_API_KEY=...
NAMECHEAP_USERNAME=...
OPENAI_ADMIN_KEY=...
ANTHROPIC_ADMIN_KEY=...
Run infralens setup anytime to reconfigure providers.
Requirements
- Python 3.12+
- uv or uvx
- Vercel CLI (optional, for Vercel projects)
- Fly CLI (optional, for Fly.io apps)
Roadmap
v0.2 - CLI Actions
-
infralens domains- List all domains with expiry -
infralens dns <domain>- View/edit DNS records -
infralens hosting- List all hosted projects
v0.3 - Project Linking
-
.infralensfile in repos to link projects with domains/hosting - Auto-detect deployments and DNS connections
-
infralens link- Interactive project linking
v0.4 - Domain Operations
- Search and purchase domains
- Transfer domains between registrars
- Bulk DNS record management
- SSL certificate status
Future
- Alerts via webhook/email for expiring domains
- Cost forecasting and budgets
- Team sharing via encrypted config
Star History
License
MIT
Metadata
Release files for infralens 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| infralens-0.1.0.tar.gz | 128.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| infralens-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 147.4 kB
Release files / infralens-0.1.0.tar.gz
| Download URL | infralens-0.1.0.tar.gz |
|---|---|
| Size | 128.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21e027856e5e40763a02571d2170bc0042b0b0d0e3905602df93000c33cf5f22
|
|
BLAKE2b-256 checksum How to use checksums |
5e9ec5dd838f5a2a28d14eeed793eea050db53bfbea818fa75af220f6d02a1a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / infralens-0.1.0-py3-none-any.whl
| Download URL | infralens-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72e43150450143754c4273b52e568bec8c47f41ffd97206313e6268f89887056
|
|
BLAKE2b-256 checksum How to use checksums |
b4a0f984d8bc440cbf63807ecd76c236a63bbcfeb68106975c6bb190b98070fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|