Nix
oxide-code exports Nix packages, an overlay, and a Home Manager module from its flake.
Run Directly
Section titled “Run Directly”Run ox without installing it:
nix run github:hakulab/oxide-codeRun the MCP plugin package:
nix run github:hakulab/oxide-code#ox-plugin-mcpOverlay
Section titled “Overlay”Add oxide-code as a flake input and apply overlays.default to expose pkgs.ox and pkgs.ox-plugin-mcp:
{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; oxide-code.url = "github:hakulab/oxide-code"; };
outputs = { nixpkgs, oxide-code, ... }: { pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ oxide-code.overlays.default ]; }; };}Home Manager
Section titled “Home Manager”Import oxide-code.homeManagerModules.default (also exported as oxide-code.homeManagerModules.oxide-code) in your Home Manager configuration to enable programs.oxide-code:
{ inputs, pkgs, ... }:{ imports = [ inputs.oxide-code.homeManagerModules.default ];
programs.oxide-code = { enable = true; plugins = [ inputs.oxide-code.packages.${pkgs.stdenv.hostPlatform.system}.ox-plugin-mcp ]; settings = { default_model = "gemini-4-neon"; providers.google.wire = "google"; models.gemini-4-neon = { provider = "google"; model = "gemini-4-neon"; }; }; };}Options
Section titled “Options”programs.oxide-code.enable: Installoxand manage its configuration.programs.oxide-code.package: Package to install (defaults topackages.<system>.oxfrom this flake).programs.oxide-code.plugins: Extra plugin packages installed alongsideoxinhome.packages.programs.oxide-code.settings: Freeform TOML attribute set written to$XDG_CONFIG_HOME/ox/config.tomlwhen non-empty. See the Configuration reference for the full schema.