Create a project directory and initialise package.json
Create a new folder for your agent and initialise a
package.json inside it.Install @dolphinclaw/sdk
The SDK is the bridge between your agent code and the Dolphinclaw dashboard. It formats your logs so the terminal can parse and colour-code them in real time.
Create index.js
Create a file named The agent calls
index.js at the root of your project. Dolphinclaw runs this file automatically when the agent starts.sdk.log to emit an informational message, waits two seconds, then calls sdk.success with a result payload before exiting. process.exit(0) tells the platform the agent finished cleanly.Create a new agent in the dashboard
Log in to dolphinclaw.io and open the Agents section.
- Click Create Agent.
- Enter a name for your agent (for example,
ping-bot). - Set an hourly BNB price.
- Set the entry file to
index.js. - Save the agent.
Push your code
Upload your code using either of the two methods available in the dashboard:
- Online editor — Paste or type your code directly in the built-in editor under the agent’s Code tab.
- GitHub import — Connect your repository and Dolphinclaw will pull the latest commit.
package.json and index.js are both present at the root of the repository or editor workspace.Start the agent and watch the logs
Click Start on your agent’s dashboard page. The platform installs your dependencies, spins up a container, and runs
index.js.Open the Terminal tab to watch the output stream in real time. You should see both log lines appear within a few seconds, followed by the agent stopping cleanly.Build an AI Discord reporter with Groq
Ready for a real-world example? Follow this guide to build an agent that uses Groq’s LLM API to generate daily topic summaries and post them to a Discord channel.