Using Nolita as a server
Since Nolita is written in TypeScript, it may not work for every pre-existing product. If you would like to use the same task-runner API provided by npx nolita
for your own applications, you can run Nolita as a server.
npx nolita serve
This runs a local API for objective-first agentic navigation of a local Chrome instance.
After starting the server, you can see the /doc
folder for the expected JSON payload.
Example payload
curl -X POST http://localhost:3000/browse \
-H "Content-Type: application/json" \
-d '{
"browse_config": {
"startUrl": "https://google.com",
"objective": [
"please tell me how many people edited wikipedia"
],
"maxIterations": 10
},
"headless": true
}
'
Flags
--port
will customize the port. By default, the server runs on port 3000.