AI-powered CLI tool to discover, filter, and collect real domains from natural language queries.
Important
Precompiled binaries are ready.
- Windows:
domgrab.exe - Linux:
domgrab
Download them from the Releases page and run directly without building from source.
- Added multi API key support
- Added automatic key rotation when a provider hits rate limit or quota
- Added cooldown handling for temporarily exhausted keys
- Added automatic provider selection from available configured keys
- Added per-provider model configuration
- Improved CLI output and provider visibility
Domain Grabber AI helps you turn a simple natural language prompt into a clean list of real domains.
Instead of manually searching and collecting domains one by one, you can ask for things like:
- universities in Indonesia
- government domains from Brazil
- educational institutions in Germany
- startup companies in Southeast Asia
- real estate companies in Singapore
The tool will:
- query the selected AI provider
- extract domain candidates from raw model output
- normalize and validate domains
- apply TLD filters if needed
- remove duplicates automatically
- rotate API keys when needed
- save only fresh results into your master list
It is useful for domain research, niche dataset building, lead collection, and automation workflows.
- Natural language domain discovery
- Multi-provider AI support
- Multi API key support per provider
- Automatic key rotation and cooldown handling
- Per-provider model configuration
- Automatic provider selection from available API keys
- Domain normalization and validation
- TLD filtering support
- Duplicate prevention
- Persistent master list storage
- Built-in
list,stats, andconfigcommands - Portable
domgrab.jsonconfig file - Ready-to-use Windows and Linux binaries
- Anthropic
- OpenAI
- Gemini
- Groq
- OpenRouter
Each provider can use:
- its own single API key
- or multiple API keys for rotation
- its own custom model through
domgrab.json
flowchart TD
A[User enters a natural language query] --> B[CLI selects provider and model]
B --> C[Load available API keys]
C --> D[Pick active key from keyring]
D --> E[AI model generates raw domain suggestions]
E --> F[Extract domain candidates]
F --> G[Normalize and validate domains]
G --> H[Apply TLD filter if enabled]
H --> I[Remove duplicates]
I --> J[Append fresh domains to master.txt]
E --> K{Rate limit or quota hit?}
K -- Yes --> L[Cooldown current key and rotate to next key]
L --> D
K -- No --> F
domgrab.exe config set gemini_api_key YOUR_GEMINI_KEY
domgrab.exe config set default_provider gemini
domgrab.exe config set gemini_model gemini-3-flash-preview
domgrab.exe grab --query "universities in Indonesia" --target 500 --batch 100 --tld ac.idchmod +x domgrab
./domgrab config set gemini_api_key YOUR_GEMINI_KEY
./domgrab config set default_provider gemini
./domgrab config set gemini_model gemini-3-flash-preview
./domgrab grab --query "universities in Indonesia" --target 500 --batch 100 --tld ac.idWindows
domgrab.exe grab --query "universities in Indonesia" --target 500 --batch 100 --tld ac.idLinux
chmod +x domgrab
./domgrab grab --query "universities in Indonesia" --target 500 --batch 100 --tld ac.idDomain-Grabber-AI/
├── main.go
├── go.mod
├── README.md
│
├── internal/
│ ├── core/
│ │ ├── config.go
│ │ ├── provider.go
│ │ ├── keyring.go
│ │ ├── domain.go
│ │ └── store.go
│ │
│ └── cli/
│ ├── grab.go
│ ├── config_cmd.go
│ └── commands.gogit clone https://github.com/AnggaTechI/Domain-Grabber-AI.git
cd Domain-Grabber-AIWindows
go build -o domgrab.exe .Linux / macOS
go build -o domgrab .domgrab <command> [flags]grab— Grab domains via AI from a natural language querylist— Show domains in the master liststats— Show domain statisticsconfig— Manage API keys, models, and defaultsversion— Show version informationhelp— Show help message
Domain Grabber AI now supports multiple API keys per provider.
This is useful when:
- one key reaches rate limit
- one key is temporarily exhausted
- you want more stable long-running batches
- you want automatic failover without manual key switching
If you configure multiple Gemini keys, the tool can:
- use key #1
- detect quota/rate limit
- put key #1 on cooldown
- rotate to key #2
- continue grabbing without stopping immediately
Configuration is stored in:
./domgrab.json{
"anthropic_api_key": "",
"openai_api_key": "",
"gemini_api_key": "YOUR_PRIMARY_GEMINI_KEY",
"groq_api_key": "",
"openrouter_api_key": "",
"anthropic_api_keys": [],
"openai_api_keys": [],
"gemini_api_keys": [
"YOUR_GEMINI_KEY_1",
"YOUR_GEMINI_KEY_2",
"YOUR_GEMINI_KEY_3"
],
"groq_api_keys": [],
"openrouter_api_keys": [],
"default_provider": "gemini",
"default_model": "",
"default_output": "master.txt",
"anthropic_model": "claude-opus-4-7",
"openai_model": "gpt-4o",
"gemini_model": "gemini-3-flash-preview",
"groq_model": "llama-3.3-70b-versatile",
"openrouter_model": "meta-llama/llama-3.3-70b-instruct:free"
}Provider selection order
--providerflagdefault_providerin config- first available provider with a valid API key
- fallback to
anthropic
API key resolution order
--api-keyflag- environment variable
- single key in
domgrab.json - multi-key list in
domgrab.json
Model resolution order
--modelflag- provider-specific model from config
default_model- provider fallback model
domgrab.exe grab --query "universities in Indonesia" --target 500 --batch 100 --tld ac.id- The CLI loads your configuration.
- It selects the provider and model.
- It loads available API keys.
- It picks the active key from the keyring.
- It sends the prompt to the AI provider.
- The model returns raw text.
- The tool extracts valid domains.
- The TLD filter is applied.
- Duplicate domains are removed.
- New results are saved to
master.txt. - If rate-limited, the tool rotates to another key automatically.
ugm.ac.id
ui.ac.id
itb.ac.id
unair.ac.id
ipb.ac.iddomgrab.exe grab --query "universities in Indonesia" --target 500 --batch 100 --tld ac.iddomgrab.exe grab --query "universities and government institutions in Indonesia" --target 500 --batch 100 --tld "ac.id,go.id"domgrab.exe grab --query "government domains from Brazil" --target 500 --batch 100 --tld gov.brdomgrab.exe grab --provider gemini --query "universities in Germany" --target 500 --batch 100domgrab.exe grab --query "tech companies in Singapore" --target 500 --batch 100 --output singapore.txtdomgrab.exe list --filter uindomgrab.exe stats═══════════════════════════════════════════
domgrab v1.0.0
author : AnggaTechI
github : https://github.com/AnggaTechI
═══════════════════════════════════════════
provider : gemini (rotating 3 keys, from config)
model : gemini-3-flash-preview
query : universities in Indonesia
target : 500 new domains
batch : 100 per request
output : master.txt (currently 0 domains)
tld : ac.id
═══════════════════════════════════════════- Build domain datasets faster
- Discover niche websites by topic or country
- Collect institutional domains in bulk
- Reduce manual provider/key switching
- Keep everything in one clean master list
- Automate repetitive domain research tasks
- Combine AI generation with your own filtering strategy
master.txtis the default output file- Domains are normalized before saving
- Duplicate domains are skipped automatically
- TLD filters are optional
- Different AI providers may have different rate limits
- Multi-key rotation helps reduce interruptions during large batches
- Results depend on the prompt quality and selected model
GitHub Repository: https://github.com/AnggaTechI/Domain-Grabber-AI
AnggaTechI
GitHub: https://github.com/AnggaTechI
This project is released under the MIT License.