Athena 101 lesson: Publish it as an Application (broader walkthrough)
Review and name versions
- Open your application and select Deployment.
- Review Live Deployment to identify the current release.
- Review Version History for versions that have been deployed. Versions also have an ordinal label such as
v1and a separate version ID. - Hover the version’s label and select the pencil (Rename).
- Enter a name and select Save name, or press Enter. Clear the name to return to the numbered label.
v2 or 3, or use the words live, published, production, latest or newest.
Deploy from GitHub
The application’s owner can connect it to a GitHub repository, so every push to a branch deploys it. Use the Git section of the Deployment tab.- Connect your own GitHub account in Integrations first. The repository picker lists only repositories you connected with your own account.
- In Git, choose the repository and the branch to deploy (the repository’s default branch is filled in). Optionally set a root directory; the default is the repository root. The root directory needs an
athena-application.toml. - Select Connect.
- Every push to the branch builds and deploys a new version. A push from someone who isn’t a workspace member with edit access to the application, and isn’t an allowed bot, waits until the owner approves the deploy.
- Every pull request against the branch gets a preview version with its own preview link. Pull requests from forks never build automatically. Previews start without the application’s Secrets. Turn on Preview Secrets to give previews the Secrets’ keys with stand-in values; a preview never gets a real Secret value. You can turn pull request previews off in the section.
- Redeploy deploys the head of the branch again. Disconnect stops pushes from deploying and pull requests from getting previews.
Stage and deploy changes
- In a session with the Applications toolkit, ask Athena to package your changes without deploying them. The
stage_applicationtool saves an immutable version without moving the live URL. - Open Deployment and review the version under Not deployed yet.
- Select Deploy this version, then confirm with Deploy.
- Wait for deployment and the health check to finish. Confirm the selected version appears under Live Deployment.
release_application tool performs both operations.
How to name a version, deploy a staged version, and roll back to an earlier release
Steps in this video
Steps in this video
- Open Deployment
- Check what is live
- Name the staged version
- Deploy this version
- Wait for the health check
- Roll back to an earlier release
- Check Live Deployment
Roll back a release

Deployment and rollback switch the live URL only after the chosen artifact passes its health check.
- Find an earlier release in Version History.
- Select Roll back to this and confirm with Roll back.
- Wait for the selected artifact to rebuild and pass its health check.
- Check Live Deployment and open the live application to review the result.
Model access, environment variables and Secrets
A published Application does not get an Athena model-access key. The AI key and lifetime budget described in Computer spending belong to the Computer and do not carry over when the app is copied into an Application, so an Application also has no Athena spend cap. An Application’s environment variables are the keys of the Secret assets linked to it, plus three that Athena sets itself. Ask Athena to link Secrets when it stages or releases a version; later deploys and rollbacks reuse the same links. Only Secrets owned by the person staging or deploying are used. Previews never get real Secret values (see Preview Secrets above). Athena sets these on every build and start of the app, in previews too:ATHENA_ENVIRONMENT and ATHENA_API_URL are not secrets, and every app in a deployment gets the same values. Use them instead of writing an address into your code, so the same version works when it is copied to another Athena. If Athena cannot tell a value, it leaves that variable out rather than guess, so check that it is set before you use it.
A Secret key named ATHENA_ENVIRONMENT or ATHENA_API_URL is ignored. Don’t list these names, or PORT, under [env] required in athena-application.toml: that list is checked against linked Secrets only.
An app already running gets the two variables at its next deploy or rollback. Waking from sleep may bring back the environment it last started with.
To call a model from an Application, put your own provider API key in a Secret asset and link it. That usage is billed by the provider and is not capped or reported by Athena.

