Local AI Agent in Python: No API Key (Ollama)
Build and run a tool-calling AI agent on your own laptop with Python and Ollama. No API key, no bill.
Video #01 ยท AI agents and MCP
Steps in the video
Files
- agent.py (47 lines)
Tested with
Python 3.13.2 | ollama==0.6.3
What this does not show
One small local model (llama3.2), two toy tools and a single run: a demonstration, not a test. No permissions, logging or tool limits. The advice pages were read as search results; the output on screen is the evidence.
Sources
Learning IT by Example.