Novita Artifact Hosting and TiDB are bringing together managed application deployment and a production-ready database layer for AI-generated applications. With Novita handling the runtime and TiDB providing MySQL-compatible data infrastructure, an AI coding agent can move from generated code to a live, data-backed application through a single deployment workflow.
The Problem
Over the past year, AI coding agents such as Cursor, Claude Code, and Devin have made it feel possible to “build an app from a single prompt.” But there is still an awkward reality: most code generated by agents never makes it to production.
Not because the code is necessarily bad, but because deployment is still too complicated.
A typical AI-generated app may need:
- A runtime environment, such as a container or sandbox
- A database, such as PostgreSQL or MySQL
- A domain and SSL certificate
- Environment variable configuration
- Database migration scripts
These are not things an agent usually handles when it writes code.

Novita Artifact Hosting: A Home for What Agents Build
Novita Artifact Hosting is a fully managed deployment platform designed for applications created by AI coding agents. The core idea is simple:
Agents write the code. Novita makes the code run.
The workflow is straightforward:
- The agent generates code and a Dockerfile in a sandbox.
- A single SDK call,
project.deploy(sandbox_id, arti_dir), starts the deployment. - Novita builds the Docker image.
- The light runtime brings the deployment online.
- Users access the app through a domain such as
https://my-app.novita.space.
This workflow is already up and running. But it only solves the compute side of the problem. Real applications also need data.
TiDB: The Ideal Database Layer for AI-Generated Apps
For AI-generated web applications, the database layer has two hard requirements:
- MySQL compatibility. Most AI-friendly frameworks, such as Next.js, Django, and Laravel, work smoothly with the MySQL ecosystem. AI-generated code is also very likely to use a MySQL driver.
- Zero operations. Agent developers do not want to manage databases. They do not want to configure connection pools, tune parameters, or handle backups.
TiDB fits both requirements:
- Fully compatible with the MySQL protocol, so AI-generated code can run without rewriting SQL.
- Distributed architecture with automatic scaling, with no dedicated DBA required.
- HTAP support, allowing the same database to handle both OLTP transactions and analytical queries.
Novita + TiDB: Add a Database with One Parameter
With Novita Artifact Hosting, enabling a managed database only takes one parameter:
deployment = project.deploy(
sandbox_id="xxx",
arti_dir="./workspace/my-app",
database=True, # this line
migrations=[
Path("./migrations/0001_schema.sql").read_text(),
Path("./migrations/0002_seed.sql").read_text(),
],
http_port=3000,
)

What happens automatically behind the scenes:
- Automatically create or reuse a TiDB instance for the project.
- Run migrations in order to create tables, indexes, and seed data.
- Inject
DATABASE_URLinto the deployment environment. The app reads it directly fromos.environ["DATABASE_URL"]. - Deploy the app, connect to the database, and start serving users.
For developers, this means no database signup, no connection string setup, and no manual migration steps. Just one line: database=True.
What This Means for AI Coding Agents
| Before | Now |
|---|---|
| Agent writes code, then a developer manually deploys to Vercel or Railway. | Agent writes code, then one SDK call deploys the app. |
| Developer must create a database in TiDB Cloud, PlanetScale, or another platform. | A managed database is created automatically and connection details are injected automatically. |
| Migration scripts must be run manually. | Migrations run automatically in order. |
| Environment variables must be configured by hand. | DATABASE_URL is injected automatically. |
| Shipping one app requires coordination across three platforms. | One platform and one API handle the full flow. |
Current Status
- Artifact Hosting is live and supports custom domains.
- Managed databases powered by TiDB are currently in trial.
- Python SDK and CLI support are available.
- Open-source examples are available on GitHub:
ecomm-with-sql,ecomm-with-managed-db, andsnake-game-static.
What’s Next
Once the managed database capability reaches GA, the Novita + TiDB combination can expand even further:
- Multi-region deployment: TiDB’s multi-data-center capabilities combined with Novita’s global sandbox nodes.
- Data sovereignty: users can choose where their data is stored.
- Agent-native workflows: agents can create projects, deploy applications, and provision databases directly through the SDK, making the entire process fully automated.
