Skip to main content
The Archetype AI Python client uses environment variables for authentication and API configuration.

Required Variables

ATAI_API_KEY

Your unique API key for authenticating with the Archetype platform.
export ATAI_API_KEY="your_api_key_here"
To obtain an API key, contact [email protected].

ATAI_API_ENDPOINT

The API endpoint URL for the Archetype platform.
export ATAI_API_ENDPOINT="https://api.u1.archetypeai.app"
If you’re using the default Archetype platform, this variable is typically pre-configured. Only set this if you’ve been provided with a specific endpoint.

Setting Environment Variables

Add the following to your shell configuration file (~/.bashrc, ~/.zshrc, or similar):
export ATAI_API_KEY="your_api_key_here"
export ATAI_API_ENDPOINT="https://api.u1.archetypeai.app"
Then reload your shell:
source ~/.bashrc  # or ~/.zshrc

Verifying Configuration

To verify your environment variables are set correctly:
echo $ATAI_API_KEY
echo $ATAI_API_ENDPOINT
Both should display the values you configured.