File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
pkg/templates/python/openagi-computer-use Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1- # Kernel API key - get yours at https://dashboard.onkernel.com
2- KERNEL_API_KEY = your_kernel_api_key
1+ # # OpenAGI API key (required)
2+ OAGI_API_KEY =
33
4- # OpenAGI API key - get yours at https://developer .agiopen.org
5- OAGI_API_KEY = your_openagi_api_key
4+ # # Optional override (defaults to https://api .agiopen.org)
5+ OAGI_BASE_URL = https://api.agiopen.org
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ Best for structured workflows with predefined steps (todos).
23232 . Deploy the app:
2424``` bash
2525kernel login
26- kernel deploy main.py -e OAGI_API_KEY=your_api_key --force
26+ cp .env.example .env
27+ kernel deploy main.py --env-file .env
2728```
2829
2930## Usage
Original file line number Diff line number Diff line change 1515sys .modules ["mouseinfo" ] = mock_mouseinfo
1616sys .modules ["pyautogui" ] = mock_pyautogui
1717
18- # Set OAGI API base URL (no .env file in deployed environment)
18+ # Load local env vars from a .env file when running locally.
19+ # In deployed environments this is typically a no-op.
20+ from dotenv import load_dotenv
21+
22+ load_dotenv ()
23+
24+ # Set OAGI API base URL (can be overridden via environment variables).
1925os .environ .setdefault ("OAGI_BASE_URL" , "https://api.agiopen.org" )
2026
2127from typing import TypedDict , List , Optional
You can’t perform that action at this time.
0 commit comments