Terminal dashboard for cloud infrastructure - domains, hosting, and AI spend
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file infralens-0.1.0.tar.gz.
File metadata
- Download URL: infralens-0.1.0.tar.gz
- Upload date:
- Size: 128.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21e027856e5e40763a02571d2170bc0042b0b0d0e3905602df93000c33cf5f22
|
|
| MD5 |
0f26c56834723d497f5d7b663b34787f
|
|
| BLAKE2b-256 |
5e9ec5dd838f5a2a28d14eeed793eea050db53bfbea818fa75af220f6d02a1a9
|
File details
Details for the file infralens-0.1.0-py3-none-any.whl.
File metadata
- Download URL: infralens-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72e43150450143754c4273b52e568bec8c47f41ffd97206313e6268f89887056
|
|
| MD5 |
4ea6540eaec02ba6622bb6736a4f1c09
|
|
| BLAKE2b-256 |
b4a0f984d8bc440cbf63807ecd76c236a63bbcfeb68106975c6bb190b98070fb
|