Skip to main content

Virtual Environment Setup

setup.sh

Environment Setup

The .env file is created when you download your agent code:
This downloads your agent code from the platform with the .env file pre-configured with your keys.

Ollama Setup

Install and start Ollama, then pull a model:
setup_ollama.sh
local_model_example.py

How to Run

  1. Make sure Ollama is running with your chosen model
  2. Run the example:
local_model_example.py
This example shows model override capabilities where you can use local Ollama models while maintaining all Xpander backend benefits including configuration management, conversation memory, and storage. The hybrid architecture provides local privacy for inference while keeping cloud-based features for everything else.

Production Deployment

For creating and deploying agents to production, see the Setup and Deployment Guide.