Platform-agnostic AI coding agent CLI. Supports 7+ LLM providers (DeepSeek, Anthropic, OpenAI, Google/Gemini, Qwen, Ollama) with permission-based security.
# Clone and install
git clone https://github.com/codedir-labs/@codedir/mimir-code.git
cd mimir
yarn install
# Run setup wizard
yarn mimir setup
# Start chatting
yarn mimirAfter cloning the repository, configure Git to use LF line endings:
git config core.autocrlf falseThis ensures consistent line endings across platforms (required for Prettier formatting checks).
# Development
yarn dev
# Tests
yarn test
yarn test:unit
yarn test:integration
# Build
yarn buildmimir- Interactive chatmimir setup- Configuration wizardmimir init- Initialize projectmimir history list- View conversationsmimir cost today- Cost analyticsmimir permissions list- Manage allowlistmimir doctor- Run diagnostics
mimir auth login- Authenticate with Teamsmimir auth logout- Sign outmimir auth status- Show authentication statusmimir orgs list- List organizationsmimir teams list- List teams in organization
Mimir supports enterprise deployments with centralized management:
Features:
- Centralized configuration via cloud API
- Policy enforcement (models, tools, sandboxing)
- Shared resources (tools, commands, allowlists)
- Cloud storage for conversations and audit logs
- LLM proxy (hide individual API keys)
- Budget quotas and usage tracking
Status: ✅ Authentication implemented! Full Teams integration in progress.
To use Teams integration, configure the backend URL:
# Copy environment template
cp .env.example .env
# Edit .env and set:
TEAMS_API_URL=http://localhost:3000/api/v1 # Development
# or
TEAMS_API_URL=https://teams.mimir.dev/api/v1 # Production# Login with device flow
mimir auth login
# The CLI will display:
# 1. A device code (e.g., WXYZ-5678)
# 2. A verification URL (e.g., https://teams.mimir.dev/auth/device)
#
# Visit the URL in your browser and enter the code to authorize.
# Check authentication status
mimir auth status
# List organizations
mimir orgs list
# Switch between organizations
mimir orgs set <slug>TEAMS_SETUP.md- Quick setup guide for Teams integrationENVIRONMENT_VARIABLES.md- Complete environment variable referenceCLI_IMPLEMENTATION_COMPLETE.md- Technical implementation details