Skip to main content

Terminal dashboard for cloud infrastructure - domains, hosting, and AI spend

Project description

Infralens

PyPI version Python 3.12+ License: MIT GitHub stars GitHub last commit

Terminal dashboard for cloud infrastructure - domains, hosting, and AI spend across multiple providers.

Infralens - Terminal dashboard for cloud infrastructure

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

  1. Go to https://developer.godaddy.com/keys
  2. Create a Production API key
  3. Copy the Key and Secret

Cloudflare

  1. Go to https://dash.cloudflare.com/profile/api-tokens
  2. Create token with Read all resources template
  3. Copy the token (shown only once)

Namecheap

  1. Go to https://ap.www.namecheap.com/settings/tools/apiaccess
  2. Enable API access (may require support ticket for new accounts)
  3. Important: Add your public IP to the whitelist
  4. Copy your API Key

OpenAI

  1. Go to https://platform.openai.com/settings/organization/admin-keys
  2. Create new admin key (requires Owner role)
  3. Copy the key (starts with sk-admin-)

Anthropic

  1. Go to https://console.anthropic.com/settings/admin-keys
  2. Create new admin key (requires Admin role)
  3. 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

  • .infralens file 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

Star History Chart

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infralens-0.1.0.tar.gz (128.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infralens-0.1.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

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

Hashes for infralens-0.1.0.tar.gz
Algorithm Hash digest
SHA256 21e027856e5e40763a02571d2170bc0042b0b0d0e3905602df93000c33cf5f22
MD5 0f26c56834723d497f5d7b663b34787f
BLAKE2b-256 5e9ec5dd838f5a2a28d14eeed793eea050db53bfbea818fa75af220f6d02a1a9

See more details on using hashes here.

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

Hashes for infralens-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72e43150450143754c4273b52e568bec8c47f41ffd97206313e6268f89887056
MD5 4ea6540eaec02ba6622bb6736a4f1c09
BLAKE2b-256 b4a0f984d8bc440cbf63807ecd76c236a63bbcfeb68106975c6bb190b98070fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page