Preparing your workspace...

assistant-chat.tsx2.5k
utils.ts850
button.tsx720
Quick Actions
codmir
Docs
Discord
Get started
API
  • Introduction
  • Installation
  • Your First Project
  • Your First Agent

Install the Codmir SDK for error tracking and monitoring

Installation

Install the Codmir SDK using your preferred package manager.

Package Installation

npm install @codmir/sdk
yarn add @codmir/sdk
pnpm add @codmir/sdk
bun add @codmir/sdk

Framework-Specific Imports

The SDK provides optimized imports for different platforms:

PlatformImport
Next.js@codmir/sdk/nextjs
React Native@codmir/sdk/react-native
Browser (vanilla)@codmir/sdk/browser
Core/Node.js@codmir/sdk/overseer

Environment Variables

Set your Codmir DSN in your environment:

# .env.local (Next.js)
NEXT_PUBLIC_OVERSEER_DSN=https://your-project.codmir.com/api/overseer

# .env (Vite/Vue/Svelte)
VITE_CODMIR_DSN=https://your-project.codmir.com/api/overseer

# .env (Node.js)
CODMIR_DSN=https://your-project.codmir.com/api/overseer

Basic Initialization

import * as Codmir from '@codmir/sdk/nextjs';

Codmir.init({
  dsn: process.env.NEXT_PUBLIC_OVERSEER_DSN,
  environment: process.env.NODE_ENV,
  release: process.env.NEXT_PUBLIC_APP_VERSION,
});

Verify Installation

After initializing, you can verify the SDK is working:

import { captureMessage } from '@codmir/sdk/nextjs';

// Send a test message
captureMessage('Codmir SDK initialized successfully', 'info');

Check your Codmir dashboard to see the test message.

Next Steps

  • Configuration - Configure sampling, privacy, and more
  • Framework Guides - Framework-specific setup
Open in ChatGPTOpen in ClaudeConnect MCP on CursorConnect MCP on WindsurfEdit on GitHub
codmir
Products
Desktop AppMobile AppIDE ExtensionAI AgentsOverseerVoice ModeCortex ProtocolHive MindGame Dev (Godat)PricingDownload
Solutions
AI Code AgentsCode ReviewError TrackingSelf-HealingDeploy TrackingAI Tracking SDKWorkflow AutomationTesting FrameworkTime TrackingVoice Control
Platform
ProjectsTickets & BoardsAgent MarketplaceIntegrationsTemplatesApp HubAdmin PanelAnalytics
Integrations
GitHubSlackDiscordVercelSentryRailwayLinearAll Integrations
Developers
DocumentationAPI ReferenceSDKCLIDeveloper PortalMarketplaceMCP ConnectorsWebhooksExamplesnpm Packages
Resources
BlogChangelogCommunityTutorialsGet StartedSupportStatusFeedback
Company
AboutCareersContact SalesKickstarterReferral Program
Legal
Terms of UsePrivacy PolicyEULATrademarkSecurity
Download on the App StoreGet it on Google Play

Codmir™ 2026. All rights reserved.

Free & open source SDK — Apache 2.0 License