Start Acontext server
Choose between hosted or self-hosted Acontext:
- Hosted (Recommended)
- Self-hosted
Go to Acontext Dashboard and sign up for a free account. The onboarding process will guide you to get an API key.Set your API key as an environment variable:
Troubleshooting
Connection refused or timeout errors
Connection refused or timeout errors
- Verify your Acontext server is running
- Check that the
base_urlis correct - Ensure no firewall is blocking the connection
- For local development, confirm you’re using
http://localhost:8029/api/v1
Authentication errors
Authentication errors
- Verify your API key is correct
- Check that the API key has the necessary permissions
- Ensure you’re passing the API key in the correct format
Module not found errors
Module not found errors
- Confirm the package is installed:
pip list | grep acontext(Python) ornpm list @acontext/acontext(TypeScript) - Try reinstalling the package
- Check your Python version is 3.10+ or Node.js version is 16+
Type errors in TypeScript
Type errors in TypeScript
- Ensure you’re using TypeScript 4.5 or newer
- Run
npm installto ensure all type definitions are installed - Check that your
tsconfig.jsonhas proper settings for module resolution
Next steps
Session Management
Create and manage sessions for organizing your conversations
Context Engineering
Build a compact context for agents in one API call
Disk Storage
Store and manage files and artifacts in Acontext
Self-Learning
Learn agent skills from past sessions
API Reference
Explore the complete API documentation