Remote script. The deploy script runs against a server you specify, so review infra/self-host/deploy-app.sh before passing it your server IP and passwords.
Credentials. The command takes a database password and a model API key on the command line, so keep them out of shell history and shared logs.
Who it is forA platform or compliance-minded team that must keep code, prompts and agent output on infrastructure it controls.
The problemHosted coding agents send code and run history to a vendor's cloud, which fails internal data residency or compliance review.
The outcomeA UseAgent instance on your own server, with Postgres holding the run log and sandboxes on hardware you choose.
What you need first
- A hosted UseAgent account, or a Linux host or laptop for self-hosting or running from source
- bun and Postgres 16+ with pgvector (for running from source)
- A sandbox provider key and a model key (the README says a real agent task needs both)
- Optional: a ChatGPT account to run Codex on your own plan
Steps
- Read the self-hosting guide at infra/self-host/README.md, and choose a sandbox plugin: Daytona, CubeSandbox or Box.
- Provision any Linux host on AWS, Google Cloud, Azure or bare metal, or use the reference Terraform host in infra/self-host/.
- Clone the repository:
git clone https://github.com/useagenthq/useagent.git && cd useagent - Run the provider-agnostic deploy script:
SERVER_IP=<ip> PG_PASSWORD=<password> OPENROUTER_API_KEY=<key> infra/self-host/deploy-app.sh /path/to/this/repo(inferred, check the README) - Open the deployed app, run one small test thread, and confirm the run appears in the event log.
Prompt for your agent
In the useagent repository, read infra/self-host/README.md, then deploy UseAgent to the server at <server-ip> using infra/self-host/deploy-app.sh. Expected output: a running UseAgent app on that server plus a short note of the sandbox plugin chosen. Verify that a test thread completes and its steps are stored in Postgres.
Caveat. The README calls UseAgent alpha software whose APIs and schemas can change between releases, so pin a tag if you need stability.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page