Install & Configure
Set up your development environment for the AIP SDK.
β οΈ Requirements
Python: 3.10 or higher
Operating System: Windows, macOS, or Linux
Network: Internet access for package installation
π Python SDK Installation
# Install from PyPI (recommended)
pip install glaip-sdk
# Install specific version
pip install glaip-sdk==0.1.0
CLI Tool
# Install via pipx (recommended for CLI)
pipx install glaip-sdk
# Install globally
pip install --user glaip-sdk
# Verify installation
aip --version
π§ Configuration
Environment Variables
Create a .env
file in your project directory:
# AIP Platform Configuration
AIP_API_URL=https://your-aip-instance.com
AIP_API_KEY=your-api-key-here
# Optional Configuration
AIP_TIMEOUT=300
AIP_DEBUG=false
Shell Configuration
Add to your shell profile (.bashrc
, .zshrc
, etc.):
# AIP SDK Configuration
export AIP_API_URL="https://your-aip-instance.com"
export AIP_API_KEY="your-api-key-here"
export AIP_TIMEOUT="300"
Interactive Configuration
# Initialize configuration interactively
aip init
# This will prompt for:
# - API URL
# - API Key
# - Timeout
# - Other settings
π Verification
Test Connection
# Check platform connection
aip status
# Expected output:
# β
Connected to AIP Platform
# API URL: https://your-aip-instance.com
# Version: 0.1.0
Test Python SDK
from glaip_sdk import Client
# Initialize client
client = Client()
# Test connection
if client.ping():
print("β
Connected to AIP Platform")
else:
print("β Connection failed")
π Security Best Practices
Use Different Keys for Different Environments
# Development
AIP_API_URL=https://dev-aip.company.com
AIP_API_KEY=dev-key-123
# Production
AIP_API_URL=https://prod-aip.company.com
AIP_API_KEY=prod-key-456
π§ Configuration Management
CLI Configuration Commands
# List current configuration
aip config list
# Get specific configuration value
aip config get api_url
# Set configuration value
aip config set api_url "https://your-aip-instance.com"
# Remove configuration value
aip config unset api_url
# Reset all configuration to defaults
aip config reset
Python Configuration
import os
from glaip_sdk import Client
# Load from environment variables
client = Client(
api_url=os.getenv("AIP_API_URL"),
api_key=os.getenv("AIP_API_KEY"),
timeout=int(os.getenv("AIP_TIMEOUT", "300"))
)
# Or load from .env file
from dotenv import load_dotenv
load_dotenv()
client = Client()
π Configuration Reference
Variable
Description
Default
Required
AIP_API_URL
AIP Platform API endpoint
-
Yes
AIP_API_KEY
Authentication API key
-
Yes
AIP_TIMEOUT
Request timeout in seconds
300
No
AIP_DEBUG
Enable debug output
false
No
π Next Steps
Test your setup: Run Quick Start examples
Learn concepts: Understand Core Concepts
Build agents: Follow the Agents Guide
π Troubleshooting
Common Issues
# Check connection status
aip status
# Verify configuration
aip config list
# Test with debug output
aip --debug status
# Reset configuration if needed
aip config reset
Debug Mode
# Enable debug output
aip --debug agents list
# Show detailed error information
aip --debug agents run <AGENT_ID> --input "test"
Remember to keep your API keys secure and never hardcode them in your applications!