Skip to main content
You will deploy a small Python agent from a GitHub repository, call it over HTTPS with an API key, and watch a push deploy a new version. The agent calls no model and needs no API keys of its own, so nothing has to be configured first.
Onecortex is in private beta. Access is by invitation, the beta is limited to 50 organizations, and it is free while it lasts. Contracts may still change before general availability, and every change is announced in the changelog. To ask for access, email [email protected].

Before you begin

  • An Onecortex invitation for your email address or GitHub account.
  • A GitHub account.
  • curl in a terminal.
1

Fork the examples repository

Open github.com/onecortex-io/examples and click Fork. You now have your own copy, which Onecortex will build from.The echo folder holds the agent. It is a plain Python function:
echo/agent.py
And agent.yml, the one file Onecortex needs, says which runtime to use and which object is the agent:
echo/agent.yml
To deploy your own agent instead, add an agent.yml like this one to its repository. See the agent.yml reference.
2

Sign in to Onecortex

Go to https://app.onecortex.io and sign up with the email address you were invited with, or sign in with GitHub. If you signed up with email, open the verification link Onecortex sends you: agents can be created only from a verified account.
3

Create the agent

In the dashboard, open Agents and click Create agent. The wizard has four steps:
  1. Source: click Connect GitHub, and install the Onecortex GitHub app on your account for your fork. Onecortex asks only to read your repositories, and never writes to them.
  2. Repository: pick your fork, the main branch, and echo as the Agent folder.
  3. Validate: Onecortex reads echo/agent.yml and confirms it is valid. A mistake here is shown with its line and a corrected snippet.
  4. Configure: name the agent echo, keep the region Europe (Frankfurt), and leave Auto deploy on push on. Click Create agent.
4

Watch the build

The dashboard opens the build. Onecortex fetches your code, validates agent.yml, builds an image, starts it and sends it one test invocation, then puts it live. Each stage is shown as it runs, with its log.A first build takes about two minutes. When it succeeds, the agent is Active on version 1.If a stage fails, the build names the stage and the cause, and nothing that was live stops serving. See Builds.
5

Create an API key

Open API keys and click Create key. Give it a name, and copy the key: it is shown once. In your terminal:
Terminal
Then open the agent’s page and copy its ID, which starts with agt_.
6

Call your agent

Replace agt_... with your agent’s ID:
Terminal
The answer streams back as server sent events: the tool call the agent made, its result, the reply, and a final done:
Output
Leave out "stream":true to get one JSON response instead. See the invoke API.
7

Change the agent and push

In your fork, change the answer in echo/agent.py:
echo/agent.py
Commit and push to main. Because auto deploy is on, Onecortex builds the push. When the build succeeds, version 2 is live, and the same curl answers Echo: hello. Version 1 is kept, and you can roll back to it from the Versions tab in seconds.

What you did

You deployed a repository you did not change except for agent.yml, and called it over an authenticated HTTPS endpoint that streamed its tool calls and its reply. Onecortex built it, tested it before it went live, kept the previous version, and deployed your push automatically.

Next steps

Deploy your own agent

How Onecortex finds the agent object in your code, for every supported framework.

Call it from your app

The request, the response, the events, and every error.

Add secrets

Give your agent a model API key without putting it in the repository.

See why it failed

Your agent’s own log lines, live, next to every invocation.
Last modified on September 29, 2026