Start Acontext Server
Use Hosted Acontext
Go to Acontext Dashboard and sign up for a free account. The onboarding process will guide you to get an API key.Use Self-hosted Acontext
Refer to this doc to start acontext server in 2 commands. It will launch Acontext API and Dashboard on your local machine:- Acontext API Base URL: http://localhost:8029/api/v1
- Acontext Dashboard: http://localhost:3000/
sk-ac-your-root-api-bearer-token.
Install SDK
Acontext provides official SDKs for Python and TypeScript/JavaScript, making it easy to integrate Acontext into your applications. The SDKs handle authentication, request formatting, and provide type-safe interfaces to all Acontext features.- Python
- TypeScript/JavaScript
Quick Start
After installation, verify your setup with a quick connection test:- Python
- TypeScript
If you see the success message, you’re ready to start using Acontext!
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