Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@0xdragon888/0gpc

Safe, reversible configuration orchestration for 0G coding tools

Published3 Oct 2026
Direct dependencies9
Transitive dependenciesNot calculated

README

Current package documentation

0gpc

Build on the trust layer for AI.

Intro

Use 0G Private Computer in your coding tools.

Requires macOS or Linux (Windows is not supported), Node.js 22+, and an installed coding tool.

Install or upgrade Node.js. If you already use nvm:

nvm install 22
nvm use 22

Integration

Currently supported coding tools:

  • Claude Code
  • OpenCode
  • Pi
  • Hermes Agent

OpenCode V2 and non-default Hermes profiles are not supported.

Features

  • Guided setup — Connect your tool in a few steps.
  • Model details — Compare providers, context and capabilities.
  • Hidden key input — Enter your API key privately.
  • Configuration preview — Review changes before saving.
  • Reversible changes — Disconnect without removing unrelated settings.
  • Connection management — Manage tools, models and keys.
  • Optional verification — Confirm before paid checks or tool launch.
  • Automation support — JSON output for scripts; no telemetry.

Security

  • Your key stays private — Enter it with hidden input or --stdin. It is saved in 0gpc's own key store (~/.local/share/0gpc/keys/, readable only by you) and is never printed, logged or included in JSON output.
  • Only 0gpc's own fields change — Interactive setup shows the configuration changes before saving; for scripts, apply --dry-run previews and apply --yes writes. key set saves the key at once and also updates the tool configurations already connected to it (for example the Hermes .env entry, or the base URL when the endpoint changes); it has no separate preview. Files are backed up and written atomically, unrelated settings are kept, and reset restores the values you had before.
  • No paid checks without your consent — Listing models does not verify your key. Verification sends one minimal request only when you confirm it in setup, run key set --verify, or run doctor --network.
  • Nothing runs behind your back — No telemetry and no automatic update checks. 0gpc shows install or update commands for you to run; it never runs them itself.

Quick Start

Get your 0G API key, then run:

npx @0xdragon888/0gpc@latest

Or install globally for the shorter 0gpc command:

# Install or upgrade
npm install -g @0xdragon888/0gpc@latest

# Start in your project directory
0gpc

Use ↑/↓ to navigate, Enter to confirm, and Ctrl-C to cancel.

Command list

The examples below use the global 0gpc command. Without a global install, replace it with npx @0xdragon888/0gpc@latest.

# Show help
0gpc -h
0gpc --help

# Show version
0gpc -v
0gpc --version

# Open setup or manage existing connections
0gpc

# API key management
0gpc key set                   # Save or replace a key using hidden input
0gpc key set --stdin           # Read a key from piped standard input
0gpc key rm                    # Remove an unused saved key

# Show connections
0gpc status
0gpc status --json             # Machine-readable output

# Health checks
0gpc doctor --offline          # Check local configuration
0gpc doctor --offline --strict # Fail on warnings as well as errors
0gpc doctor --network          # Verify access; may incur a charge

# Preview configuration (run from your project root)
0gpc apply claude --scope project --model <model-id> --dry-run

# Save configuration
0gpc apply claude --scope project --model <model-id> --yes

# Disconnect a tool; keep the saved key
0gpc reset claude --yes

Replace <model-id> with a compatible model ID. Tool IDs: claude, opencode, pi, hermes. Scopes: project or user; Pi and Hermes use user only.

JSON output uses schema_version: 3.

Configuration file

Default pathContents
~/.config/0gpc/config.tomlConnections and preferences
~/.local/share/0gpc/keys/Saved API keys
~/.local/state/0gpc/Change records and backups

Supports XDG paths and ZGPC_HOME for custom 0gpc storage.

ToolDefault configuration files
Claude CodeProject: .claude/settings.local.json; user: ~/.claude/settings.json
OpenCode V1Project: opencode.json or opencode.jsonc; user: under ~/.config/opencode/
Pi~/.pi/agent/models.json and ~/.pi/agent/settings.json
Hermes Agent~/.hermes/config.yaml and ~/.hermes/.env

MIT License · 0G CLI

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
yaml
Environment
{
  "local_name": "yaml",
  "alias": false,
  "peer_metadata": null
}
^2.7.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^9.0.0development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
esbuild
Environment
{
  "local_name": "esbuild",
  "alias": false,
  "peer_metadata": null
}
^0.25.0development
smol-toml
Environment
{
  "local_name": "smol-toml",
  "alias": false,
  "peer_metadata": null
}
^1.3.1development
@eslint/js
Environment
{
  "local_name": "@eslint/js",
  "alias": false,
  "peer_metadata": null
}
^9.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.7.0development
jsonc-parser
Environment
{
  "local_name": "jsonc-parser",
  "alias": false,
  "peer_metadata": null
}
^3.3.1development
typescript-eslint
Environment
{
  "local_name": "typescript-eslint",
  "alias": false,
  "peer_metadata": null
}
^8.0.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a7b0f6693031c63def1c18fb8eb13fcdee5a7ba2",
  "tarball": "https://registry.npmjs.org/@0xdragon888/0gpc/-/0gpc-0.1.0.tgz",
  "fileCount": 3,
  "integrity": "sha512-PSkOWALTejqpSgCIqGNfmae5T5fMuro/D5Puspe/xAdt1kgsQSG+wpzHF712WNnmBqaKhKQN8Ckn3696hF+g7g==",
  "signatures": [
    {
      "sig": "MEYCIQCLf65uydzxmpZY1v6rCkOKk/alDNEEPLy4B4CTaE4NUAIhAOCfV9aO8ccCt2EIc/HvnskiL3SjokCyzHFg76U0M7qM",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 380378
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bf66ee31f80a3bc028680e77a2b41835b93d58115ea2fb4bf487719446ae4ebb

Other collected versions

0.2.420 Oct0.2.319 Oct0.2.215 Oct0.2.115 Oct0.2.013 Oct0.1.76 OctView all collected versions →