Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

1.4 KB
Raw Blame

title: "Setup" icon: gear description: "Configure API credentials and select a model provider"

CAMEL-AI supports multiple model backends. Choose one below and configure your environment variables.

1. OpenAI API

Obtain your OPENAI_API_KEY from OpenAI Dashboard.

```bash echo 'export OPENAI_API_KEY=""' >> ~/.zshrc source ~/.zshrc ``` _Replace `~/.zshrc` with `~/.bashrc` if using bash._ ```powershell setx OPENAI_API_KEY "" /M ``` _You may need to restart your terminal for changes to apply._ Create a `.env` file in your project root: ```dotenv OPENAI_API_KEY= ``` Load in Python: ```python from dotenv import load_dotenv load_dotenv() import os print(os.getenv("OPENAI_API_KEY")) ``` To configure an `API_BASE_URL` (e.g., Azure), also set: ```bash export OPENAI_API_BASE_URL="" ```

2. Other Hosted APIs

For non-OpenAI providers, see Using Models by API Calling.

3. Local Models

To run fully on-device with open-source models, refer to Local Models Guide