npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openkodaai/koda

v1.0.6

Published

Official Koda Docker-first installer and lifecycle CLI

Downloads

302

Readme

Koda is a control-plane-first platform for orchestrating AI agents with durable state, object storage, knowledge retrieval, memory recall, runtime inspection, and operator-facing setup flows. It is designed to act as a harness: you bring the providers, prompts, policies, and task shapes that fit your use case, and Koda supplies the operational runtime around them.

This repository is the canonical open-source monorepo for Koda. It combines:

  • the Python platform backend at the repository root
  • the official Next.js operations UI in apps/web
  • public docs, OpenAPI, Docker assets, and contributor guidance in one place

The public quickstart brings up the platform stack first. Product configuration such as providers, access policy, secrets, agents, and integrations is completed through the control plane and its API surface.

Quickstart

  1. Install the npm CLI or use npx.
  2. Run the installer.
  3. Open the dashboard and finish bootstrap in the control plane.
npm install -g @openkodaai/koda
koda install

Or run the installer without a global install:

npx @openkodaai/koda@latest install

Repository contributors can still use the source wrapper:

git clone https://github.com/OpenKodaAI/koda.git /opt/koda
cd /opt/koda
./scripts/install.sh

That wrapper automates Docker and Node.js installation only on apt-based Linux hosts with sudo. On macOS or other environments, install those prerequisites yourself and use the npm CLI path directly.

When the installer completes, start in the dashboard:

  • Dashboard setup: http://localhost:3000/control-plane/setup
  • Control-plane home: http://localhost:3000/control-plane
  • Dashboard overview: http://localhost:3000

The first-run flow is intentionally linear:

  1. open /control-plane/setup
  2. paste the short-lived setup code printed by koda install
  3. create the local owner account
  4. sign in to open the HTTP-only operator session
  5. finish access policy and default provider setup
  6. optionally connect the first Telegram agent

If the setup code expires before you finish, run koda auth issue-code and continue from the same setup screen.

From there you can validate platform health, configure access, connect a provider, and create your first agent without editing per-agent .env values. From the control plane you can also connect and verify integrations, inspect connection_status and health, and then grant those integrations per bot through the agent contract instead of relying on ambient system-wide access.

The scoped npm package ships the same product-only release bundle that is attached to GitHub Releases:

  • the CLI binary itself
  • the pinned release manifest
  • the compose/bootstrap bundle
  • release checksums and SBOM metadata

That means npm install -g @openkodaai/koda installs the product channel, not the source tree.

Public releases are cut from main by version. When the repository version changes and the merge to main passes pr-quality and security, GitHub Actions creates the matching v<version> tag and the release workflow publishes the npm package, GHCR images, and GitHub Release assets from that tag. If the tag already exists on the validated commit but the GitHub release is still draft, missing assets, or the npm dist-tag is still wrong, the tag-cut workflow dispatches the publish workflow again for recovery instead of silently stopping. If that tag already belongs to an older commit and publication is incomplete, the workflow now fails loudly so the next merge must ship a new patch version instead of trying to reuse an escaped semantic tag.

What The Stack Starts

  • web on port 3000 for the operator-facing UI
  • app on port 8090 for /health, /setup compatibility, /api/control-plane/*, and /api/runtime/*
  • postgres for durable state
  • seaweedfs plus seaweedfs-init for bundled S3-compatible object storage

Control Plane Surface

The operational UI is part of the product itself. The dashboard runs as the official web frontend and proxies control-plane and runtime calls back to the backend:

What Koda Includes

  • A control plane for provider configuration, agent management, secrets, and operational settings
  • A dedicated web dashboard for first-run setup, operations, runtime inspection, and control-plane workflows
  • A runtime API for inspection, orchestration, command execution, and runtime supervision
  • Postgres-backed durable state for runtime, control-plane, knowledge, memory, and audit records
  • SeaweedFS-backed bundled object storage for the quickstart path through a generic S3-compatible contract
  • Retrieval, memory, and artifact services aligned behind typed internal contracts
  • Docker-first deployment for local environments and single-node VPS installs
  • A purpose-agnostic harness that can back research, operations, automation, support, engineering, or domain-specific agent workflows

Core Capabilities

  • Control-plane-first bootstrap with first-run setup directly in the web dashboard instead of hand-maintained per-agent env files
  • Multi-agent orchestration with isolated runtime state, prompt contracts, and operational settings
  • Multi-provider execution so each agent can be configured for the models and tools that fit its role
  • Harness-style architecture that lets operators define agents for any niche, workflow, or task class
  • Durable artifact processing for documents, media, screenshots, and derived evidence
  • Knowledge retrieval and memory recall to ground agent execution with relevant context
  • Runtime visibility through health, setup, dashboard, control-plane, and OpenAPI-backed public surfaces
  • Provider-agnostic architecture with explicit setup and verification flows
  • Production-friendly quickstart with Postgres, SeaweedFS, health checks, and doctor tooling

How The Platform Is Structured

Koda is organized around a few stable layers:

  • Web UI: Next.js operator interface in apps/web
  • Control plane: setup, policy, secrets, provider connections, agent definitions, and public onboarding routes
  • Runtime: execution supervision, queue orchestration, runtime APIs, and agent tool dispatch
  • Knowledge and memory: retrieval, recall, curation, and context assembly
  • Artifacts and storage: durable metadata, object-backed binaries, and evidence generation
  • Infrastructure: Docker, Postgres, bundled S3-compatible storage, health checks, and operator tooling

For a public architecture walkthrough, start with Documentation Index, Architecture Overview, and Runtime Architecture.

Installation Paths

Public Interfaces

  • / for the main operations dashboard served by apps/web
  • /control-plane/setup in apps/web as the canonical first-boot configuration surface
  • /control-plane in apps/web as the control-plane home and agent catalog after auth/setup
  • /setup as a compatibility bridge into the dashboard setup flow
  • /api/control-plane/agents/* for canonical agent-management operations
  • /api/control-plane/dashboard/agents/* for canonical operational dashboard data
  • /api/runtime/* for runtime inspection and control
  • docs/openapi/control-plane.json as the maintained public API contract
  • API reference for an operator-facing summary of the HTTP surface

Development

Backend development:

pip install -e ".[dev]"
ruff check .
ruff format --check .
mypy koda/ --ignore-missing-imports
pytest --cov=koda --cov-report=term-missing

Web development:

pnpm install
cp apps/web/.env.example apps/web/.env.local
pnpm dev:web

Containerized local development with live reload:

pnpm dev:stack:build

This development stack mounts the repository directly into the app and web containers, runs the web UI in Next.js development mode, restarts the control-plane backend automatically on source changes, and keeps frontend build output ephemeral so UI changes are not served from an old image layer. The dev frontend image also pre-seeds the package store and node_modules cache so the first boot is much faster than rebuilding the production image on each edit. When dependency manifests change, restarting the dev stack reapplies installs automatically.

Documentation

Contributing, Security, And Licensing

Contributors should start with CONTRIBUTING.md for local setup, validation, and documentation expectations. Security-sensitive reporting guidance lives in SECURITY.md, and community participation expectations live in CODE_OF_CONDUCT.md.

For the application-security baseline, threat model, ASVS mapping, and operational hardening checklist, use docs/security/README.md.

Koda is published under the Apache-2.0 license.

Developer And AI-Friendly Entry Points

Validation

ruff check .
ruff format --check .
mypy koda/ --ignore-missing-imports
pytest --cov=koda --cov-report=term-missing
pnpm lint:web
pnpm test:web
pnpm build:web
python3 scripts/generate_repo_map.py --check
pytest -q tests/test_ai_docs.py tests/test_repo_map.py tests/test_open_source_hygiene.py

If you touch the Rust workspace, also run:

cargo fmt --check --manifest-path rust/Cargo.toml
cargo clippy --manifest-path rust/Cargo.toml --workspace --all-targets -- -D warnings
cargo test --manifest-path rust/Cargo.toml --workspace

GitHub CI

Koda validates pull requests with a tiered GitHub Actions pipeline:

  • pr-quality runs required checks for Python quality, Python tests on 3.11 and 3.12, web lint/test/build, repo-hygiene, Rust validation, and Docker smoke coverage
  • security runs dependency audits, Bandit, Gitleaks, CodeQL, and container scanning on pull requests, on main, and on a weekly schedule

Coverage thresholds are sourced from pyproject.toml, not duplicated in workflow files. GitHub uploads pytest/coverage artifacts, vitest results, and SARIF findings so failures can be reviewed directly in artifacts or in the Security tab.

Release Distribution

Official product releases are published through three aligned channels:

  • npm as @openkodaai/koda for npm install -g and npx
  • GHCR images pinned by version in the release manifest
  • GitHub Releases with the bundle archive, manifest, checksums, SBOM, and npm tarball

The release workflow runs quality, test, security, Docker, and packaged-install smoke validation before publish. Merges to main are picked up by cut-release-tag, which creates the semantic tag only after pr-quality and security pass on that exact commit, then dispatches the release workflow in publish mode for the matching tag. You can also backfill or recover manually by pushing a v<version> tag or by dispatching the release workflow in publish mode from the target ref. When that dispatch starts from main or another non-tag ref, the workflow validates the commit, creates the semantic tag if needed, and publishes the release in the same run. For the release contract and artifact flow, see Release distribution.