Track Time with nanoclaw
- Add the Timesheet server to a group with one `ncl` command
- Keep your Timesheet API key in the vault, out of the container
- Start the timer, log work and pull reports from your agent
No credit card required. Cancel anytime.
Timesheet is the time tracker that nanoclaw agents drive through the Timesheet MCP server. The agent works as your Timesheet account, so it only reaches the projects and data that account can see. Running a different self-hosted agent? See OpenClaw or Hermes Agent.
How do I connect Timesheet to nanoclaw?
nanoclaw adds MCP servers per agent group with ncl groups config add-mcp-server. nanoclaw does not document OAuth sign-in for remote MCP servers yet, so this page uses a Timesheet API key. nanoclaw asks you to keep keys in its credential vault (OneCLI), which adds them to requests on the way out, instead of passing them with --env.
Ask your agent to add the server
Your nanoclaw agent can run ncl from its container. Write commands need your approval, so you see each step before it runs. Store the API key in the vault yourself first (see the steps).
Connect this group to Timesheet so you can track my time. 1. Run: ncl groups config add-mcp-server --id <this group's id> --name timesheet --url https://mcp.timesheet.io 2. Do not put any API key in --env or --headers. My key is in the OneCLI vault. 3. After the next restart, show my running timer and today's hours.
From a host shell, ncl write commands run at once without approval. Apply the change right away with ncl groups restart --id <group-id>.
Store the key and add the server yourself
Create an API key in the Timesheet web app under Integrations > API Keys, write it to a file only you can read, register it in the vault for mcp.timesheet.io and attach it to the group. Then add the server and restart the group.
onecli secrets create --name Timesheet --type api_key \
--file "$token_file" --host-pattern mcp.timesheet.io \
--header-name Authorization --value-format 'Bearer {value}'
onecli agents grants attach-secret --id "$AGENT_ID" --secret-id <secret-id>
ncl groups config add-mcp-server --id <group-id> \
--name timesheet --url https://mcp.timesheet.io
ncl groups restart --id <group-id>nanoclaw shows the vault for API hosts, not for MCP servers by URL. Check onecli secrets create --help for the header flags, and confirm with a first call that the key reaches Timesheet. $AGENT_ID is the OneCLI agent of your group, as nanoclaw's credentials guide shows.
You: Start the timer for Website redesign and note that I'm on the checkout flow.
nanoclaw: Started the timer on Website redesign at 09:14 with the note "checkout flow". Tell me when you're done and I'll stop it and save the entry.
- What's my timer status?
- Log 90 minutes on the API refactor for yesterday
- How many billable hours did I track this week?
Step by step
- 1In the Timesheet web app, open Integrations > API Keys and create a new key
- 2Register the key in the OneCLI vault for the host
mcp.timesheet.ioand attach it to your agent group - 3Add the server with
ncl groups config add-mcp-server --id <group-id> --name timesheet --url https://mcp.timesheet.io - 4Restart the group with
ncl groups restart --id <group-id>, or wait for its next start - 5Ask your agent what to start, stop or log. The entries appear in every Timesheet app right away
Hosted server vs local server: which one fits nanoclaw?
Both offer the same Timesheet tools. The difference is where the server runs and how the API key gets to it.
| Question | Hosted server (recommended) | Local server |
|---|---|---|
| How nanoclaw adds it | --url https://mcp.timesheet.io | --command npx --args '["-y","@timesheet/mcp"]' |
| Where it runs | On Timesheet's servers | Inside the agent's container |
| How the key gets there | The vault adds it to requests for mcp.timesheet.io | The server reads TIMESHEET_API_TOKEN, and nanoclaw refuses raw keys in --env |
| Documented by nanoclaw today | The --url command and the vault, not the two together | The --command form, not how to hand it a key |
| Best for | Most groups | Setups that already give stdio servers their keys another way |
Recommendation: Use the hosted server. The local server needs the key as an environment variable, and nanoclaw does not document a safe way to provide one yet.
What can a nanoclaw agent do with Timesheet?
Your agent already runs in its own container with the tools you give it. With Timesheet connected, it can keep your timesheet too.
Timer by asking
Start, pause, resume and stop the timer. The agent finds the project by name, so you don't need IDs.
Log finished work
"Log two hours on the migration for this morning" becomes a time entry with the right project, times and description.
Hours and reports
Ask for today's total, the week by project or billable hours, and get the numbers in the chat.
Exports
Generate PDF, Excel or CSV exports from your saved templates and send them by email.
One server per group
Each agent group gets its own server entry and its own key, so a work group and a private group stay apart.
Key kept in the vault
The container never holds the raw key. Delete the key in Timesheet to cut access at once.
How does nanoclaw talk to Timesheet?
nanoclaw starts each agent group in its own container and gives it the MCP servers in the group's configuration. The Timesheet MCP server runs at mcp.timesheet.io and exposes your account as tools such as timer_start, task_create, statistics_get and export_generate.
What happens after you add the server
nclstores the server in the group's configuration and allows themcp__timesheet__*tools- The next container start connects the agent to
https://mcp.timesheet.io - The vault adds your key to each request on the way out
- The agent turns your request into the right tool call, such as starting a timer
- The entry is saved to your account and syncs to every Timesheet app
# Add the hosted server to a group
ncl groups config add-mcp-server --id <group-id> \
--name timesheet --url https://mcp.timesheet.io
# Apply now
ncl groups restart --id <group-id>
# Remove it again
ncl groups config remove-mcp-server --id <group-id> --name timesheetRead more in the MCP server documentation or nanoclaw's guide to tools and MCP servers.
What can I ask my nanoclaw agent?
Anything you'd tell a colleague who keeps your timesheet. Name the project, the time and what you did.
- Start of day
Start where you left off
“Start the timer for the project I worked on yesterday and tell me how long I worked on it then.”
- After a meeting
Log a meeting
“Log the client meeting from 14:00 to 15:30 today on Acme with the note "kickoff".”
- End of week
Review the week
“Show my hours for this week by project and list the days with less than six hours.”
- Billing
Prepare an export
“Export last month's billable hours for Acme as a PDF and email it to me.”
nanoclaw vs OpenClaw: which one is this?
Both are open-source assistants you run yourself, with similar names. They are separate projects with their own setup. This page covers nanoclaw.
nanoclaw
This pageA self-hosted assistant that runs each agent group in its own container, with the harness of your choice. You manage it with the
nclcommand.OpenClaw
An open-source assistant with its own
openclaw mcpcommands and the ClawHub skill directory. See OpenClaw.
Looking for another agent you run yourself? See Hermes Agent or Paperclip.
Cost, security and troubleshooting
What does it cost?
Connecting nanoclaw costs nothing extra on the Timesheet side. The MCP server is part of the Pro plan and above. Every plan starts with a 30-day trial, no credit card required.
Compare plans →How is access secured?
The API key acts as your Timesheet account, so the agent can reach what your account can reach. Keep it in the vault, never in --env, --headers or the URL. To cut access, delete the key under Integrations > API Keys and remove the server with ncl groups config remove-mcp-server.
Something not working?
- No Timesheet tools: the change applies on the next container start. Run
ncl groups restart --id <group-id>. - 401 or authentication error: the key did not reach the server. Check that the secret's host pattern is
mcp.timesheet.io, that it is attached to this group and that it sendsAuthorization: Bearer <key>. - The URL is rejected: nanoclaw refuses URLs with a key in them. Use exactly
https://mcp.timesheet.io. - A feature is refused: your plan may not include it. The tool answer links to the plans.
Frequently asked questions
How do I connect Timesheet to nanoclaw?
Store a Timesheet API key in the OneCLI vault for mcp.timesheet.io, then run ncl groups config add-mcp-server --id <group-id> --name timesheet --url https://mcp.timesheet.io and restart the group.
Does nanoclaw support OAuth sign-in to Timesheet?
nanoclaw does not document OAuth for remote MCP servers yet. The Timesheet server supports OAuth, but with nanoclaw use an API key in the vault until nanoclaw documents a sign-in flow.
Where do I get the API key?
In the Timesheet web app, open Integrations > API Keys and select New API Key. The same key works for the hosted server, the local server and the Timesheet API.
Why not pass the key with --env?
nanoclaw asks you to keep keys out of the container. Its vault adds the key to requests on the way out, so the agent never sees the raw key.
Can I run the Timesheet server locally in the container?
Yes, with --command npx --args '["-y","@timesheet/mcp"]'. The local server needs the key in TIMESHEET_API_TOKEN, and nanoclaw does not document how to hand a stdio server its key yet. The hosted server avoids this.
Which plan do I need?
The Pro plan or above, because the MCP server uses the Timesheet web platform. Start with a 30-day trial, no credit card required.
Can I connect several groups?
Yes. Add the server to each group that should track time. You can give each group its own API key, so you can revoke one without the others.
Let your nanoclaw agent keep your timesheet
One command, one key in the vault, and your hours are tracked wherever you talk to your agent.
No credit card required. Cancel anytime.