| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Auto-execution CLI tool for LLM-powered task automation using local Ollama processing.
This project enables automatic tool execution using local LLM processing. The LLM automatically:
| Tool | Description | Auto-Execution |
|---|---|---|
| BashTool | Execute bash commands securely | ✅ Automatic |
| GrepTool | Search files with regex patterns | ✅ Automatic |
| GlobTool | Find files using glob patterns | ✅ Automatic |
| ReadTool | Read file contents | ✅ Automatic |
| EditTool | Edit existing files | ✅ Automatic |
| WriteTool | Create new files (restricted) | ✅ Automatic |
| LSTool | List directory contents | ✅ Automatic |
| WebFetchTool | Fetch web content | ✅ Automatic |
# Clone the repository
git clone https://github.com/NeaByteLab/Ollama-API-Tools
cd Ollama-API-Tools
# Install dependencies
npm install
# Install Ollama (if not already installed)
# Visit: https://ollama.ai or https://ollama.comnpm start
# or
node CLI.jsnode CLI.js infoEdit CLI.js line 40 to change the default model:
const defaultModel = 'granite3.2:8b' // Change this# List directory contents
You: list files in current directory
# Read file contents
You: read package.json
# Search for patterns
You: find all files containing "import"
# Edit files
You: add a comment to the main function# Check running services
You: check if redis is running
# Execute commands
You: run npm install
# System information
You: show system info# Fetch web content
You: get content from https://example.com# Basic file operations
You: read package.json and show dependencies
# Simple search
You: find all files containing "import" in src folderOllama-API-Tools/
├── CLI.js # Main CLI application with auto-execution
├── package.json # Dependencies and scripts
├── prompt/ # AI prompt configurations
│ ├── prompt.txt # Main system prompt
│ └── message.json # Message templates
├── tools/ # Tool implementations
│ ├── Registry.js # Tool registry
│ ├── BashTool.js # Command execution
│ ├── ReadTool.js # File reading
│ └── ... # Other tools
├── services/ # Service layer
│ └── Provider.js # Ollama API integration
├── utils/ # Utilities
│ └── Context.js # Session management
└── tests/ # Test files
└── TestTools.js # Tool testing
npm test
# or
node tests/TestTools.jsOllama not running
# Start Ollama
ollama serveModel not found
# Pull model
ollama pull granite3.2:8bTool execution errors
Auto-execution not working
MIT License - NeaByteLab
| Back | FazBrowse Home | New Git URL |