The intelligent terminal-based browser that try to eliminates the need for conventional web browsing.
NeuroShell is a command-line AI browser that combines local language models with real-time web search to deliver comprehensive, contextual answers directly in your terminal. Say goodbye to opening multiple browser tabs and hello to instant, intelligent responses.
NeuroShell was born from a simple yet powerful idea: Why open a browser when you can get better answers faster?
Instead of:
- Opening a browser
- Typing in search engines
- Clicking through multiple links
- Reading through irrelevant content
- Switching between tabs
You get:
- Instant intelligent responses
- Contextual AI analysis
- Curated information from multiple sources
- Beautiful terminal interface
- Conversation memory
- ๐ง Neural Intelligence: Seamlessly integrates with Ollama for local language model inference
- ๐ Multi-Provider Web Search: Supports Google and Brave search engines, and Tavily for web page extraction
- ๐ฏ Query Optimization: Automatically optimizes user queries for better search results
- ๐ Intelligent Content Extraction: Extracts and processes relevant content from web pages
- ๐ฌ Conversational Memory: Maintains conversation history for contextual responses
- ๐จ Rich Terminal Interface: Beautiful, interactive terminal UI with typewriter effects
- โก Async Architecture: High-performance asynchronous processing
- ๐ก๏ธ Robust Error Handling: Comprehensive error handling and graceful degradation
- ๐ง Configurable: Flexible configuration options for timeouts, content limits, and more
- ๐ Browser Replacement: Complete terminal-based browsing experience
NeuroShell follows a modular, neural-inspired architecture that processes queries like a human brain:
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ User Query โ -> โ Neural Processor โ -> โ Web Search โ
โ (Terminal) โ โ (Optimization) โ โ (Multi-Source) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
|
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Smart Response โ <- โ Content Synthesisโ <- โ Content Extract โ
โ (Terminal) โ โ (AI Analysis) โ โ (Web Pages) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
- AppState: Central nervous system for application components
- ConversationManager: Orchestrates the complete neural processing pipeline
- ModelManager: Handles Ollama model selection and neural network management
- SearchResultProcessor: Processes and synthesizes search results
- InputValidator: Validates and sanitizes user input
- Configuration: Centralized neural configuration management
- Python: 3.8 or higher
- Ollama: Installed and running locally
- Internet Connection: Required for web search functionality
- Terminal: Modern terminal with Unicode support (recommended)
Follow the official Ollama installation guide for your operating system.
Start the neural engine:
# On macOS/Linux
ollama serve
# Or if using system service
systemctl start ollama
Install a neural model:
# Recommended: Install Gemma 3 model
ollama pull gemma3
# For faster responses: Install Phi3
ollama pull phi3
# For advanced users: Install larger models
ollama pull llama2:13b
# Clone NeuroShell
git clone https://github.com/thejasmeetsingh/neuro-shell neuroshell
cd neuroshell
# Create neural environment
python -m venv venv
# Activate neural environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
# Install neural dependencies
pip install -r requirements.txt
Create a .env
file in the project root with your search API keys:
# Search API Keys (configure at least one for optimal performance)
BRAVE_API_KEY=your_brave_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
GOOGLE_SEARCH_ENGINE_ID=your_google_cse_id_here
TAVILY_API_KEY=your_tavily_api_key_here
# Test ollama connection
curl http://localhost:11434/api/tags
# Start NeuroShell
python main.py
-
Launch NeuroShell:
python main.py
-
Select your neural model from the available options
-
Start browsing with your brain! Ask anything and get intelligent responses
- Regular queries: Just ask naturally like you're talking to a smart assistant
- Exit commands:
exit
,quit
,q
, orCtrl+C
- Context: NeuroShell remembers your conversation for better responses
- Sign up at Brave Search API
- Get your API key from the dashboard
- Add to
.env
file
- Visit Google Cloud Console
- Enable the Custom Search API
- Create credentials and get your API key
- Set up a Custom Search Engine at Google CSE
- Sign up at Tavily AI
- Get your API key from the dashboard
- Add to
.env
file
- Neural Input Validation: Validates query format and intent
- Neural Query Optimization: Uses AI to enhance search effectiveness
- Multi-Source Neural Search: Performs intelligent search across providers
- Neural Result Ranking: AI determines most relevant information sources
- Neural Content Extraction: Extracts and processes detailed content
- Neural Response Synthesis: Creates comprehensive, contextual responses
- New Search Providers: Extend neural search capabilities
- Custom Neural Prompts: Add specialized neural behaviors
- Neural Output Formats: Create new response formats
- Neural Configuration: Add advanced neural parameters
# Install a neural model
ollama pull gemma3
# Verify neural installation
ollama list
# Start ollama server
ollama serve
# Check ollama status
curl http://localhost:11434/api/tags
- Verify API keys in
.env
file - Check internet connection for neural web access
- Try different neural query formulations
- Model Selection: Smaller neural models (Phi3 or Gemma3) = faster responses
- Content Limits: Adjust neural content processing limits
- Search Count: Optimize neural search result count
- Timeout Settings: Tune neural timeouts for your hardware