Step-by-step help for the things you’ll actually do: setting up your server, handing the agent its first job, answering it from your phone, letting it clear your Dependabot queue. Start with your first hour, then jump to whatever you’re trying to get done.
From the “server is ready” email to your first merged change. You’ll need that email, an authenticator app on your phone, an OpenRouter account and, for most people, a GitHub account.
1Choose your password and add your OpenRouter key
Open the link in the email Your Agent DJ server is ready. It works once.
On Set up Agent DJ, choose a password: at least 12 characters, with an uppercase letter, a lowercase letter and a digit.
Paste your OpenRouter key. It starts with sk-or-v1-; if you don’t have one yet, make one at openrouter.ai/keys and add some credit to it.
Click Set up. The agent restarts with your key, which takes a few seconds.
2Turn on two-factor sign-in
The admin account has to have it, so this screen comes up straight away.
Scan the QR code with an authenticator app on your phone (Google Authenticator, Authy, 1Password and the like). Can’t scan it? The code to type in is printed under it.
Type the 6-digit code the app shows and click Confirm.
Save the 10 recovery codes somewhere safe that isn’t your phone. Each works once, and they are not shown again. Then click I’ve saved these -- continue.
3Walk through the guided setup
Five short steps: Welcome, Models, Git, Alerts, First project. Any of them can be skipped and done later; the guide is under Settings → Account → Guided setup → Open guided setup.
Models
Click Use these profiles, then Continue. You get a set of everyday models (the default), a stronger set for hard problems, and a Frontend set that is picked automatically for UI work. You can change every one of them later on the Models page.
Git
On GitHub, create a fine-grained token: your picture → Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token.
Give it these permissions:
Permission
Access
What it’s for
Repository access
All repositories
Or only the ones the agent should touch
Contents, Pull requests
Read and write
Pushing approved work, opening pull requests
Administration
Read and write
Creating new repositories and deploy keys
Workflows
Read and write
Setting up GitHub CI for you
Actions
Read
Waiting for your checks before a merge
Dependabot alerts, Code scanning alerts
Read
The GitHub inbox
Metadata
Read
Required by GitHub
Paste it into GitHub token and click Connect. It is tested before it is saved, and the page says who it signed in as.
The agent tells you when it needs you. The guide sets up Telegram; if you’d rather get alerts as phone notifications, skip it and follow Approve work from your phone afterwards.
In Telegram, talk to @BotFather, send /newbot and follow its questions.
Open your new bot and press Start.
Paste the Bot token BotFather gave you and click Connect and send a test.
First project
Click Create my first project. The guide closes and you land on Planning. If the code you want to work on already exists, add it first (the next step); if you’re starting from an idea, see Start a new project from an idea.
4Add the repository you want it to work on
Go to Settings → GitHub and click Repositories next to your token.
Find your repository and click Add · runs elsewhere. That is the right choice whenever your app is deployed somewhere other than your Agent DJ server: finished work arrives as a pull request, and Agent DJ never writes to main by itself.
Go to Settings → Projects, open the new project and look at Review setup. If it says not tested yet, click Detect review setup. It finds your typecheck, lint and test commands and tries them on main; this takes a few minutes.
5Plan your first change
Click Work in the left rail, then New Plan (on a phone: the Plan tab).
Pick your project under Repo, leave Model profile on Auto, and click Start Planning Session.
Describe what you want, the way you would to a colleague. Something small for a first run:
For example
On the signup form, an email address without an @ is accepted and the person never hears from us. Reject it with a clear message under the field, and add a test for it.
The planner reads your code, can search the web and open pages, and asks when something is unclear. Answer its questions in the chat. It can’t change your code from here.
When it has a plan, the badge says plan ready. Click Show plan and read it. Want it different? Say so in the chat and it revises the plan.
Check the plan's Done when list at the end: a few short statements of what the finished work does, each something a test can check. The build writes a test for each, and the review checks every one before it lets the work through. If one is wrong or missing, say so before you build.
6Build it
Click 🚀 Build Now.
Check the Budget (USD). It starts at your default task budget ($10 unless you change it), and the task stops and asks for more rather than go over it.
Click Confirm & Start Building.
The task page shows the work as it happens. Along the top, the gate: Checks → Commit → AI review → Your look → CI → Ship. The agent writes the code, the gate re-runs your real checks, and a second model reviews the change. If either says no, the work goes back to the agent with the reasons, as many times as it takes.
7Take your look, then merge
When the status turns to Review diff, the changes panel opens by itself: Final look — approve to merge. The reviewer’s verdict (✓ READY and any findings) is in the task stream.
Read the diff. Happy with it? Click Approve & merge.
Not quite? Click Send back…, write what should change, and click Send back for more work. Or fix it yourself, see Get changes made before it merges.
What happens on approval depends on how the project was added: it opens a pull request for you to merge on GitHub (the task page links it), or it merges into main and pushes. Either way, what ships is the exact commit you looked at, and with GitHub CI on it waits for your Actions to pass first.
guides
Bring in your code
Getting a project onto your server, from wherever it lives today. Adding projects is for admins.
Add a repository that's on GitHub
Admin
The situation Your code is on GitHub and you want the agent working on it.
Open Settings → GitHub and click Repositories next to your token.
Pick one of the two buttons on the repository:
Add · runs elsewhere: your app is deployed somewhere else, which is most people. Work goes up as a pull request; main is never written.
Add · runs here: after review and your approval, the change merges into main and is pushed.
Open the project under Settings → Projects and check Review setup says all checks run.
Add a repository from another git host
Admin
The situation Your code is on GitLab, Bitbucket, Azure DevOps, Codeberg or a git server of your own.
Open Settings → Projects and find Add a project.
Paste the repository’s https clone address. For a private repository, fill in Username (optional) and Token (optional) with a token that can read and write. It is stored encrypted and used to push approved changes back.
Click Clone.
Read the summary. Checks the review gate will run lists the commands it found in your repository’s own scripts. Anything it couldn’t verify arrives switched off: only turn on Test commands that make network calls if they don’t touch production.
Click Create project.
Start a new project from an idea
Admin
The situation There's no code yet. You have an idea and want the agent to set it up and build it.
Click New Plan, open the Repo list and choose New project…
Give it a Project name (letters, digits, _ or -, up to 64) and, if you like, a one-line Description.
Leave Create a private GitHub repo and Set up GitHub CI ticked to get a repository and checks on GitHub from the start.
Click Create & Start Planning and describe what you want built.
When the plan is ready, 🚀 Build Now, exactly as in your first hour.
Turn a folder on your PC into a project
AdminDesktop app
The situation The code is on your computer and has never been pushed anywhere.
In the desktop app, open Settings → Projects.
Under Add from a folder on this PC, type a project name and click Choose folder…
Check the confirmation: it says how many files are being sent and what is left out (.git, node_modules, secrets such as .env files and keys, and links).
The folder becomes a project on your server, with its own git history starting today.
Make sure the review can run your tests
Admin
The situation A task says a check “couldn't run”, or the project was added with “None detected” under its checks.
Open the project under Settings → Projects and go to Review setup.
Click Detect review setup (or Test again). It reads your package scripts, database schema and .env.example, then runs each check on main. Allow a few minutes.
Each check says runs, couldn’t run or fails on main. Click one that didn’t run to see its output.
Click Fix with the agent to start a task that repairs the setup. It also does this by itself when a run fails.
Add tests to a project that has none
Admin
The situation You built your app without tests, or never got round to them. Planning shows “This project has no tests yet. Add some?”
Click Add tests. A task called Set up tests starts and shows up under Work.
It picks the usual test framework for your language, adds a command that runs every test, and writes tests for the code that matters most: anything that calculates, handles money, checks permissions or talks to another service.
Approve it like any other change. Once it merges, the tests become one of the project’s checks, so every later change has to pass them.
guides
Everyday work
The jobs you'll do most weeks, and what to do when a task needs you.
Fix a bug someone sent you a screenshot of
The situation A customer emailed a screenshot of an error page and a sentence about what they were doing.
Click New Plan and pick the project.
Paste what they told you, and click 📎 Attach to add the screenshot. Images, PDFs, CSV, text, JSON, Markdown and spreadsheets all work, up to 20 files of 25 MB each.
Ask it to find the cause before it proposes a fix.
For example
A customer gets this error when they save their profile with an apostrophe in their name (screenshot attached). Find out why before proposing anything, and make sure the fix comes with a test that fails today.
It reads the code, and can run your app in a sandbox to look at it. When it has the cause and a plan, click 🚀 Build Now.
Build a bigger feature faster
The situation The plan touches several separate parts of the app, and you'd rather not wait for them one by one.
When the plan is ready, click 🚀 Build Now.
Tick Build in parallel, up to 4 parts. The budget now covers the whole job.
Click Confirm & Start Building.
The plan is split into parts that don’t touch the same files, they are built at the same time, and then combined into one change for one approval. The task page lists each part with its status and cost.
The agent stopped to ask you something
The situation You got a “waiting on your APPROVAL” alert, or a task shows Needs approval.
Open the task. The card at the bottom is one of two kinds:
The agent has a question: type your answer and click Answer. It goes straight back to the agent as direction.
Approval needed: it wants to do something flagged as sensitive, like editing a config file or a CI workflow. Read the command, then Approve, or Reject and say why (Confirm reject).
Get changes made before it merges
The situation The change is close, but not what you'd ship: a name is wrong, or it missed a case.
On a task in Review diff, the changes panel gives you two ways:
Tell the agent
Click Send back…
Write exactly what to change. This text is its next instruction.
Click Send back for more work. It goes through the checks and the review again, then back to you.
Fix it yourself
Click Edit on a file. It opens in an editor right there.
Make your change. Optionally say what you fixed.
Click Save N files & re-check. Saving doesn’t merge: your edit goes through the checks and the review like any other.
A task stopped, got stuck or ran out of budget
The situation A task shows Escalated, Error, Stopped or Stalled instead of Done.
Open the task and read the reason at the top of the resume panel.
Out of budget? Once 75% of it is spent, an Add budget field appears; add what it needs (up to $100 at a time).
Add a note on what to do differently, if you have one.
Click Resume.
The plan and everything done so far is kept. Resuming re-plans from where it stopped; it doesn’t start over or blindly retry.
Roll back files the agent changed
The situation With Auto mode on, the agent ran a command that made a mess of its working copy.
If the task is running, click Stop.
Open Undo points on the task page.
Pick the moment before things went wrong and click Restore, then Yes, restore.
Find an old task, or see what something cost
The situation You want last month's task on the billing page, or what bug fixes cost you this quarter.
Click History in the left rail.
Choose Tasks or Plans, and search by goal, project or task id.
Narrow it with the filters: project, type (Bug fix, Feature, UI/styling, Performance, Investigation, Other), outcome and when.
Sort by Cost. The total for what you’ve filtered is at the bottom.
Edit by hand, with the agent beside you
Admin
The situation It's a small change you'd rather make yourself, but you want the checks and the review to run on it.
Click IDE in the left rail, pick a project and click Start editing.
Edit files on a branch of your own; they save as you type. The Assistant tab answers questions about the file you’re in and can make changes, which appear live in the editor.
Open Checks & submit, click Run all checks, write a commit message and click Commit & submit. It runs the checks, commits, has the AI review it (on by default) and merges.
guides
Let it work for you
Work that starts without you, and tasks that finish without stopping to ask.
Let it handle Dependabot and security alerts
Admin
The situation Dependabot opens a dozen pull requests a week and the security alerts keep piling up.
Set it up once
Open Settings → GitHub and find What each project picks up.
For each project, set each source to Off, Propose or Auto: Dependabot pull requests, Dependabot security alerts, Code scanning alerts (CodeQL), Review comments requesting changes and Failing checks on the default branch. Start with Propose.
Under Approve links, choose how links reach you: Telegram, email or both.
Click Save on the bar at the bottom, then Poll now to check straight away.
Then, day to day
New items arrive in Inbox in the left rail, and as a link in Telegram or email. For each: Approve & start task, Snooze 1 d or 7 d, or Dismiss. The link works too: one tap, once, for 48 hours.
Let long tasks run without stopping
The situation A long task keeps pausing to ask before it edits a config file, and you're tired of babysitting it.
Open Settings → Agent behavior and click Turn auto mode on…
Tick the projects it should cover. There is no “all projects” option, on purpose.
Click Turn it on for N projects. It applies to tasks you start from now on.
It still asks, every time, before deleting work (anything git tracks, .git, anything outside its sandbox) and when it has a question. While it’s on, the agent saves an undo point before every command.
Skip your final look too
Under Final merge review, click Turn final review off, and changes the independent review approves merge and deploy on their own. The review still runs on every change. These switches are per account: they only change the tasks you start.
Teach it how your project works
Admin
The situation It keeps running the slow test suite, or forgets that the API and the web app are released together.
Project memory: facts about this project
Open the project under Settings → Projects, go to Project memory and click View and edit.
Write what every task should know, in plain Markdown, and click Save.
For example
Run the unit tests with pnpm test:unit. The end-to-end suite needs the staging database; never run it from a task. Anything that changes the API needs the matching change in web/ in the same task.
The agent adds notes here itself as it learns, and tidies them every night. It can be wrong: correct or delete anything that isn’t true.
Skills: how to do one kind of work
Click Skills in the left rail and pick the project.
Switch built-in skills on or off with their Use switch, or click New skill and write your own: a name, a description and the instructions.
guides
Work from anywhere
Your phone, your terminal, your own PC, and the other services you use.
Approve work from your phone
The situation You're away from your desk when a change is ready, and you'd like to approve it from your phone.
Install the console
Android: open your server’s address in Chrome, open the menu and choose Install app.
iPhone and iPad: open it in Safari, tap Share and choose Add to Home Screen. Notifications on iPhone only work from the installed app.
Turn on notifications
Open the installed app and sign in.
Go to Settings → Notifications → Push notifications, click Enable on this device and allow notifications when asked.
Click Send a test.
Alerts arrive when a task is waiting on your APPROVAL, a Review READY needs your merge approval, a task is ESCALATED, DONE or hits an ERROR, each with the project and the cost so far. Tap one to open it, then approve, answer or merge right there.
Work in a folder on your laptop or server with djg
The situation You're on a server over SSH and want DJ to read the logs and fix a config file right there, or work on code that isn't a project.
Install it
Download it from Settings → Devices → Command line: Linux (x64), Linux (ARM64) or Windows (x64). It is a single program with nothing else to install.
Linux: unpack it and put it on your path:
tar -xzf djg-cli-*-linux-*.tar.gzsudo install djg /usr/local/bin/
Windows: unzip it, move djg.exe into a folder such as C:\Tools, and add that folder to your Path (search Start for “environment variables”, edit Path, click New). Open a new terminal afterwards.
Sign it in
Run djg login yourname.djgagent.ai.
Open the link it prints in a browser where you’re signed in. Check the code on the page matches your terminal, then click Approve. Codes last ten minutes. Nothing opens a browser on the machine itself, so this works over SSH.
Use it
cd into a folder and run djg. Talk to DJ as you would in the console. Before it edits a file or runs a command, it shows you what and asks Allow? [y]es / [n]o; a allows that kind for the rest of the session, and n followed by a reason tells DJ why not. It can’t touch anything outside the folder.
For a job you’d rather keep off your working copy, use djg task "add a retry to the upload client". It works on its own branch in its own folder and tells you how to take the result when it finishes.
Use the desktop app, and tools on your own PC
The situation You want alerts on your PC, and the agent to use a tool that only runs on your machine.
Download it from Settings → Account → Desktop app: Windows, Linux (.AppImage) or Linux (.deb). Install and open it.
Under Your server address, type your server’s name (just yourname works) and click Connect. Sign in as usual; the PC links itself and appears under Settings → Devices.
Alerts now arrive as PC notifications. When you first close the window it asks whether to quit or keep running in the tray; keep it running to keep getting them.
Let the agent use a tool on your PC
In the app’s control panel, under Local tools, click Add a local tool. Fill in the name, what it does, the program and its arguments, and any settings it needs (those stay on your PC). Switch it on and click Save local tools.
In the console, open Settings → Connections, find your PC under On your PC and click Add next to the tool.
Connect Jira, Linear, Sentry and other services
Admin
The situation Bugs are tracked in Linear and errors land in Sentry, and you want the agent to read them itself.
Open Settings → Connections and pick a service under Add a service.
Sign in on the service’s own page in the tab that opens, or paste a key where it asks for one.
Click Tools and projects to choose which projects can use it and set each tool to On, Ask first or Off.
Then just mention it in a plan:
For example
Read Linear issue ENG-142 and the Sentry errors linked to it, and plan a fix.
guides
Team, spending and your account
Money, models, teammates, signing in, billing and getting help.
Keep spending under control
The situation You want to know what the agent costs before the OpenRouter bill tells you.
Model costs are billed by OpenRouter to your key. There are limits at every level:
Each task has a budget you set at Build Now. It is checked after every model call, and the task stops and asks before going over.
The defaults are under Settings → Runtime limits (admin): Default task budget ($10) and Planning turn budget ($15 per planning reply).
A hard ceiling: set a credit limit on the key itself in your OpenRouter account.
To see where it went, click Stats in the left rail (admin): the last 14 days of spend, your OpenRouter balance, daily spend, spend by project and by kind of work, and each model’s calls and cost. The Cost column in History shows it task by task.
Choose which models do the work
Admin
The situation You want a cheap set of models for small fixes and the best ones for hard problems.
A profile sets the planner, coder, investigator, test writer and planning chat models in one choice.
Click Models in the left rail and scroll to Profiles.
Click New profile, name it (say, budget) and click Create profile.
For each seat, click Set model and pick one, or leave it on the default. Click Save profile.
Choose which profile is the Default for new work.
Then pick a profile per job from the Model profile list on a new plan or at Build Now. Auto uses your default, and the Frontend profile for UI work.
Add a teammate
Admin
The situation A colleague should be able to plan and approve work on two of your projects, but not change settings.
Click Users in the left rail, then fill in Add a user.
Enter their email, an initial password (12 characters or more) and tick the projects they can see.
Click Create user, then send them your server’s address and that password yourself. They choose their own password when they first sign in.
They can plan, start, answer, approve and resume work on their projects, use the inbox, and set up their own notifications and devices. Projects, models, connections, limits and other people are for admins. Their tasks spend from the same OpenRouter key.
Sign in faster, or get back in
The situation Typing a password and a code every week is a chore, or you've lost your phone.
Add a passkey
Open Settings → Account → Passkeys and click Add a passkey.
Name it, type your current password and click Create passkey.
Next time, click Sign in with a passkey. It counts as both your password and your code.
Locked out
Forgot your password: click Forgot password? and enter your email. A 6-digit code arrives, valid for 30 minutes.
Lost your authenticator: type one of your recovery codes where it asks for the 6-digit code. None left? Another admin can use Reset 2FA; if you’re the only admin, email support@djgagent.ai.
Too many tries: wait five minutes and try again.
Change your card, cancel, or take your data
Admin
The situation Your card is changing, or you're done with Agent DJ and want your data.
Card, invoices and cancelling:Settings → Account → Subscription → Manage subscription opens your billing page on Stripe. Can’t sign in? djgagent.ai/cloud/account emails you a link to it.
After you cancel: your server keeps running to the end of the period you paid for. Then it is switched off and your data is kept for 14 days so you can download it, after which it is deleted along with its backups. Changed your mind before then? Keep your subscription from the billing page.
A payment fails: the server pauses. Update your card and it starts again by itself.
Need us to look at your server? Nobody at DJG can sign in to it unless you allow it. Under Settings → Account → Support access, click Allow for 24 hours (or 3 or 7 days). It ends by itself, or when you click End now, and every change is in your audit log.
Your server is backed up every night, encrypted and kept off the server. To make one now as well, before a big change, go to Settings → Account → Backups and click Back up now. It starts as soon as Agent DJ is not busy, at most once an hour.
reference
Reference
For looking things up once you know your way around.
Task statuses
Status
What it means
What you do
Running
Working on it.
Watch, nudge, or Stop.
Queued
Waiting for a free slot on that project.
Nothing; it starts by itself.
Needs approval
Paused on a question or a sensitive action.
Answer or approve it.
Review diff
Passed the checks and the review; waiting for your look.
Approve & merge, or Send back…
Escalated
Gave up: out of budget, out of steps, or it couldn't ship.
Read why, then Resume.
Error
Something crashed.
Resume from the last saved step.
Stopped
You stopped it.
Resume when you're ready.
Stalled
The server restarted mid-run.
Resume.
Done
Finished.
Nothing, or Resume with what's missing.
The left rail
Item
What’s there
Who
Work
Your plans and tasks: what needs you, what's building, recent work.
Everyone
History
Every task and plan, searchable, with costs.
Everyone
Inbox
Work found on GitHub, waiting for your decision.
Everyone
Skills
Instructions for kinds of work, per project.
Admins
Models
Which models do which job, and your profiles.
Admins
IDE
Edit a project by hand, with checks and review.
Admins
Stats
Spending and how the agent is doing.
Admins
Users
Accounts and the projects each can see.
Admins
Settings
Your account, alerts and devices; admins also see projects, GitHub, connections and limits.
Everyone
On a phone, the rail is a tab bar along the bottom.
When the agent asks first
It wants to…
Normally
With Auto mode on
Edit code and run your checks
Goes ahead
Goes ahead
Edit config, .env, .git or CI workflow files; run a flagged command
Asks
Goes ahead
Delete work git tracks, or anything outside its sandbox
Asks
Asks
Use a connected service’s tool that changes something
Asks (Ask first)
Asks (Ask first)
Ask you a question
Asks
Asks
Merge
Waits for you (final merge review)
Waits for you, unless you turned final review off
djg commands
Command
What it does
djg
Chat with DJ about this folder; picks up this folder's session from the last 12 hours.
djg --new
Start a fresh session.
djg -c
Carry on with this folder's most recent session, however old.
djg --mode <mode>
Start in a permission mode (below).
djg task "…"
A job on its own branch, in its own folder.
djg task --list
This repository's tasks and where they stand.
djg task --discard <id>
Throw a task's branch and folder away (asks if it has unmerged work).
djg task --clean
Remove every finished or abandoned task.
djg status
Which server and account this machine is signed in as.
djg update
Get the latest djg from your server, signature checked.
djg logout
Sign this machine out.
Inside a session:
Type
What it does
/mode
Show or change what DJ may do without asking.
/model
Show the models, or switch to one of your profiles.
/budget
Show or set what a turn or build may spend, e.g. /budget 25.
/stop
Stop the running turn.
/resume
Carry on with a build that stopped.
/pr
Push the last build's branch and show where to open the pull request.
/web
This session's page in the console.
/exit
Quit. The session stays on your server.
Permission modes, for --mode and /mode:
Mode
What DJ may do without asking
ask
Asks before every edit and every command. The default.
auto-edit
Edits go ahead; commands ask.
auto
Everything goes ahead except risky commands and secret files.
read-only
DJ can look but not change anything.
With Auto mode on for the project, djg starts in auto instead of ask. In every mode it stays inside the folder, asks before touching secret files such as .env and keys, and refuses commands like sudo or git push. Keys: Alt+Enter for a new line, Up and Down for what you sent before, Ctrl-C to clear, stop, or quit.
Defaults and limits
What
Default or limit
Default task budget
$10, adjustable from $0.25 to $100 (Runtime limits)