{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "comet-ml-opik--self-host-opik-with-docker",
 "repo": "comet-ml/opik",
 "repo_url": "https://github.com/comet-ml/opik",
 "repo_slug": "comet-ml-opik",
 "title": "Self-host Opik on your own machine",
 "page_title": "How to self-host Opik on your own machine with Opik",
 "summary": "Clone the repo and start the full platform with the Opik.sh script, then point the SDK at it.",
 "who": "A developer or company that cannot send traces to a third-party cloud.",
 "problem": "Many observability tools only offer self-hosting on an enterprise plan.",
 "outcome": "A local Opik UI at localhost:5173 receiving traces from your apps.",
 "steps": [
  "Run `git clone https://github.com/comet-ml/opik.git` and `cd opik`",
  "Start the platform with `./opik.sh` (use `./opik.sh --verify` to check that all containers are healthy)",
  "Configure the SDK with `opik configure` for the self-hosted address, or call Opik.configure(use_local=True)",
  "Stop with `./opik.sh --stop`; only use `./opik.sh --clean` when you want to remove all data"
 ],
 "agent_prompt": "Self-host comet-ml/opik with `./opik.sh`, verify it with `./opik.sh --verify`, send one test trace from <my script>, and confirm it appears at localhost:5173.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Docker Compose is meant for local development and testing; the README points to Helm for production.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip; install with `pip install opik`",
  "An Opik server: Comet.com cloud, or self-hosted with Docker (Kubernetes and Helm for larger setups)",
  "Optional: uv for `uvx opik mcp configure`"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "data-loss",
   "notice": "`./opik.sh --clean` stops all containers and removes all Opik data volumes."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/comet-ml-opik/self-host-opik-with-docker/",
 "md": "https://dedupedai.com/use-cases/comet-ml-opik/self-host-opik-with-docker/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/comet-ml-opik--self-host-opik-with-docker.json",
 "api_version": "v1"
}
