@teeckin/agent
v1.9.1
Published
One-command setup for TeeckIn time tracking in AI coding agents (Claude Code, Codex, etc.)
Maintainers
Readme
@teeckin/agent
One-command setup for TeeckIn time tracking in AI coding agents.
Supports Claude Code and OpenAI Codex.
Quick Start
# Run in your project directory
npx @teeckin/agent initThe CLI auto-detects your agent type. You can also specify explicitly:
npx @teeckin/agent init --claude # Claude Code
npx @teeckin/agent init --codex # OpenAI CodexAuthentication
Claude Code (Browser-based)
Claude Code uses OAuth PKCE flow - no credentials needed in config files. When you start a Claude Code session:
- Claude connects to TeeckIn MCP server
- Your browser opens to TeeckIn for authorization
- You select or create an agent to use
- Authorization completes automatically
Codex (OAuth Credentials)
Codex requires OAuth credentials from TeeckIn Settings > Agents:
- Create an agent at teeckin.com/app/agents
- Copy the Client ID and Client Secret
- Run
npx @teeckin/agent init --codexand enter the credentials
Or set environment variables:
export TEECKIN_CLIENT_ID=teeckin_agent_...
export TEECKIN_CLIENT_SECRET=tcs_...
npx @teeckin/agent init --codexWhat It Does
For Claude Code
Creates:
.mcp.json- MCP server configuration (PKCE auth via browser).claude/settings.json- SessionEnd hook to auto-stop timerCLAUDE.md- Instructions for Claude to prompt for topics
For Codex
Creates:
~/.codex/config.toml- MCP server configuration with OAuth credentials.codex/hooks.json- Session hooksAGENTS.md- Instructions for Codex to prompt for topics
Commands
Config commands (manage MCP setup):
npx @teeckin/agent init # Initial setup (prompts for token)
npx @teeckin/agent update # Update MCP config with latest features
npx @teeckin/agent help # Show helpTimer commands (interact with API):
npx @teeckin/agent exec:status # Check if timer is running
npx @teeckin/agent exec:update "notes" # Update notes on active timer
npx @teeckin/agent exec:stop # Stop the active timerEnvironment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| TEECKIN_CLIENT_ID | Codex only | OAuth Client ID (from Settings > Agents) |
| TEECKIN_CLIENT_SECRET | Codex only | OAuth Client Secret |
| TEECKIN_API_URL | No | Custom API URL (for self-hosted) |
How It Works
- Session starts - Agent asks what topic you're working on
- You pick a topic - Timer starts automatically
- You work - Time is tracked in the background
- Session ends - Timer stops automatically (via hooks)
Switch topics mid-session by telling your agent.
Requirements
- Node.js 18+
- Pro subscription (personal agents) or Team plan (organization agents)
Links
License
MIT
