Get Started
Quickstart
Quickstart guide for Atoma Proxy
Prerequisites
Before deploying Atoma Proxy, ensure you have:
- Docker and Docker Compose installed
- Sui wallet configured (see Sui installation guide)
- Hugging Face API token (for accessing gated models)
Clone the repository:
Configure .env
:
- Create a
.env
from the.env.example
file:
- Fill in the values for the environment variables. You need to at least set the following mandatory variables:
POSTGRES_DB
POSTGRES_USER
POSTGRES_PASSWORD
ATOMA_PROXY_SERVICE_PORT
(default:8081
)ATOMA_API_SERVICE_PORT
(default:8080
)
Configure config.toml
:
- Create a
config.toml
from theconfig.example.toml
file:
- Fill in the values for the configuration variables. You need to at least set the following mandatory variables:
database_url
: The URL of the PostgreSQL database. Use the values from the.env
file.models
: The list of models to be supported by the proxy.
Start the containers:
- Check service status:
- Test the health endpoint:
- View available models:
API Documentation
See the API Reference for more details.
Interact with your own Atoma Proxy Instance
Once you have deployed your Atoma Proxy instance locally, you can interact with it by using the same API endpoints as the ones described in the API Reference.
For example, for a chat completion request, you can use the following command (assuming that you have set the ATOMA_API_SERVICE_PORT
to 8080
, otherwise replace the port below accordingly):
In order to generate an API key locally, you should follow a registration process, described in here.