Prerequisites
Before you begin, make sure you have:- Python 3.12 or higher installed
- A Google Cloud Platform account (free tier works)
- 5-10 minutes for initial setup
Quick Setup
Install AgenticPal
Clone the repository and install dependencies:
uv is 10-100x faster than pip. Install it with: curl -LsSf https://astral.sh/uv/install.sh | shSet up Google Cloud credentials
AgenticPal needs OAuth credentials to access your Google Workspace:
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable these APIs:
- Google Calendar API
- Gmail API
- Google Tasks API
- Configure OAuth consent screen (add your email as test user)
- Create OAuth Client ID (Application type: Desktop app)
- Download the JSON file and save it as
credentials.jsonin the project root
Configure environment variables
Create a
.env file in the project root:.env
AgenticPal uses Alibaba’s Qwen model by default. Get a free API key at DashScope.
Try Your First Commands
Once AgenticPal is running, try these natural language commands:Calendar Management
Email Operations
Task Management
Multi-turn Conversations
AgenticPal remembers context and asks clarifying questions:Using the Web API
AgenticPal also provides a REST API with streaming support:CLI Commands
help
Show available tools and commands
exit / quit / q
Exit the interactive CLI
Troubleshooting
Browser doesn't open for OAuth
Browser doesn't open for OAuth
If the OAuth flow doesn’t start automatically:
- Copy the URL from the terminal
- Paste it into your browser manually
- Complete the authentication
- The CLI will continue once you authorize
Invalid credentials error
Invalid credentials error
If you see “invalid_grant” or credential errors:
- Delete
token.jsonin the project root - Run
python main.pyagain - Re-authenticate in the browser
- Changed OAuth scopes
- Removed your email as a test user
- The token expired (shouldn’t happen often)
Python version error
Python version error
LLM API errors
LLM API errors
If the agent isn’t responding:
- Check your API key in
.env - Verify you have API credits/quota
- Try a different model in
main.py:
Next Steps
Core Concepts
Learn how AgenticPal’s architecture works
Features
Explore all capabilities in depth
API Reference
Integrate AgenticPal into your applications
Examples
See more usage examples