Skip to content

Install & First Run

This page gets you from nothing to a working AI response in a few minutes.

1. Requirements

2. Install the package

pip install hands-on-ai

Or install the latest from GitHub:

pip install git+https://github.com/michael-borck/hands-on-ai.git

That single command installs everything: all four modules, plus PDF and Word support for RAG. There are no extra installs to remember.

3. Connect a provider

The quickest path is local Ollama (no API key):

# Install Ollama from https://ollama.com, then pull a model:
ollama pull llama3

Ollama runs at http://localhost:11434 and Hands-On AI connects to it automatically, with no configuration needed.

Using OpenAI, OpenRouter, Groq, an authenticated Ollama server, or anything else? See Choose a Provider.

4. Run your first bot

from hands_on_ai.chat import get_response

print(get_response("Explain photosynthesis like I'm 10."))

You should see a real response from the model. Try a personality bot:

from hands_on_ai.chat import pirate_bot

print(pirate_bot("Tell me about sailing ships."))

5. Verify your setup

Hands-On AI ships a diagnostic command that checks your connection, shows the resolved configuration, and lists available models:

handsonai doctor

If something isn't connecting, this is the fastest way to see why (wrong server URL, missing API key, model not pulled, etc.).

Next steps