CLI

Daya Code

A programming agent in your terminal. Daya Code reads, writes, searches, and runs commands inside your project. The brain lives on Daya; you only need a token.

daya-code — terminal
$ cd my-project
$ daya-code "refactor the login and add tests"
▸ read_file src/auth/login.ts
▸ write_file src/auth/login.ts
▸ run_command npm test
{ "passed": 12, "failed": 0 }
✓ Done. 3 files modified, tests passing.

Installation

Download the script, make it executable, and run it from any project:

# Option 1 — Direct download
curl -Lo /usr/local/bin/daya-code https://daya-ai.com/daya-code.mjs
chmod +x /usr/local/bin/daya-code
# Option 2 — npm (if published)
npm install -g daya-code

You can also download the direct script or clone the repository and use node cli/daya-code.mjs.

Getting started

1
Sign in

Run daya-code login once. It will ask for your Daya token (find it in Settings → Account).

2
Open your code

Navigate to your project root and run daya-code without arguments for interactive mode, or ask it directly:

$ daya-code "explain this project"
$ daya-code "find the bug in login"
$ daya-code "add tests for the users API"
$ daya-code "migrate this from JavaScript to TypeScript"
3
Resume sessions

Use daya-code --continue to pick up the last session in this folder. Daya Code remembers the previous context.

How it works

Daya Code runs on your machine, inside your project. It reads files, modifies them, searches code, runs commands, and creates new files. Each action requires your confirmation (or use --yes to skip it).

Read filesUnderstands your code before touching it
Write & editModifies existing files or creates new ones
Search codeFinds functions, classes, errors
Run commandsRuns tests, linters, builds

Ready for Daya to work with your code?