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.
curlin 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 And To deploy your own agent instead, add an
echo folder holds the agent. It is a plain Python function:echo/agent.py
agent.yml, the one file Onecortex needs, says which runtime to use and which object is the agent:echo/agent.yml
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:
- 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.
- Repository: pick your fork, the
mainbranch, andechoas the Agent folder. - Validate: Onecortex reads
echo/agent.ymland confirms it is valid. A mistake here is shown with its line and a corrected snippet. - 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:Then open the agent’s page and copy its ID, which starts with
Terminal
agt_.6
Call your agent
Replace The answer streams back as server sent events: the tool call the agent made, its result, the reply, and a final Leave out
agt_... with your agent’s ID:Terminal
done:Output
"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 Commit and push to
echo/agent.py:echo/agent.py
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 foragent.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.