cli

module
v0.45.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: Apache-2.0

README

Jentic CLI

The Jentic CLI ships as two Go binaries built from one module:

  • jenticctl — the installer / lifecycle CLI. It installs and operates Jentic One locally: stand up a deployment (source venv or Docker) and manage the running app (health, start/stop, logs, updates, teardown). Its state lives under ~/.jentic.
  • jentic — the agent CLI. It manages agent identities, discovers and imports APIs from the public catalog, inspects operations, and executes against them. Its state lives in the XDG layout. It is self-contained: talking to a remote instance needs no jenticctl and no local install.

Commands

Run jenticctl or jentic (no args) for the grouped command list, or <binary> <command> --help for any command. Every command, flag, and example is in the generated CLI reference (also served in the app at /app/docs).

Binary Area Commands What you get
jenticctl Setup & lifecycle install · wizard · setup · doctor · status · start · stop · logs · update · reset-password · uninstall Stand up Jentic One locally (source venv or Docker) through an interactive wizard, then manage the running app: health checks, start/stop, log tailing, updates, password reset, and teardown.
jentic Identity & access register · setup · logout · whoami · context · env · identity · migrate Each identity is an agent keypair scoped to an environment; a context binds environment + identity + mode and is what commands act through. Register an agent (Ed25519 + RFC 7523), switch/inspect contexts, and whoami to see your identity/permissions/bindings as the control plane does.
jentic APIs catalog · apis · endpoints · credentials · connect · access Browse, search, and import APIs from the public catalog, then manage the ones in your local registry. endpoints prints the platform's endpoint + permission reference; credentials lists the credentials the control plane holds; connect <vendor> starts a connect session a human approves; access shows and changes what your credential bindings let you do.
jentic Find and run operations search · inspect · execute · executions · history · events · api The agent loop: find imported operations, inspect their contract, and call them through the broker. executions follows held calls awaiting human approval; history export audits a trace; events watch streams live events; api is a gh api-style authenticated passthrough to any control-plane route.
jentic Local agent client skill · reset · doctor · mcp skill installs the "how to use Jentic" skill into agent runtimes (Claude Code, Cursor, Codex, …); reset wipes local state (and removes any agent account an older release left behind); doctor is the agent-side read-only self-check; mcp serves Jentic tools to a local MCP client. Flow + examples: docs/guides/connecting-agents.md.
jentic Administration admin · theme admin config providers manages the platform's credential-provider configuration; theme sets the persisted color theme.

Install

brew install --cask jentic/tap/jentic   # macOS / Linux — both binaries
scoop install jentic                    # Windows — jentic only; add the bucket first, see docs/installation/windows.md
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh

The one-liner installs both binaries (verified download, or a from-source build when no release asset matches) and flows straight into the jenticctl install wizard. Manual download, signature verification, the installer's environment knobs, and air-gapped installs are in Installing the CLIs. jenticctl is not supported on native Windows — use WSL (platform support).

Quick start

Local install — stand up Jentic One on this machine, then connect to it:

curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register        # defaults to http://127.0.0.1:8000 and seeds the local broker

Remote server — connect to an instance someone else runs (ask your operator for both URLs):

jentic register --url https://jentic.example.com --broker-url https://broker.jentic.example.com

Setting up a local coding agent? Run jentic setup instead of jentic register — it registers the agent plus installs the agent skills and MCP entry (connect an agent).

register creates the environment, identity, and context, registers the key, prints the console approval link, waits for an operator to approve, and mints a token. Re-running is idempotent (--force re-registers from scratch; exit code 3 means "still pending — approve, then re-run"). Then:

jentic doctor             # identity + reachability + clock-skew report
jentic catalog            # browse APIs
jentic whoami             # a fresh agent is bound to no APIs
jentic connect <vendor>   # start connecting a credential — a human approves the printed URL
jentic execute GET:https://api.example.com/v1/pets

The worked end-to-end example is First brokered call.

Local vs remote installs

The control plane (--url) and the broker (--broker-url, the data plane jentic execute goes through) are separate; the CLI never derives one from the other.

  • Local (the stack jenticctl install stands up): bare jentic register gets both right. If you pass --url yourself, two rules apply:
    1. Use 127.0.0.1, not localhost. The token-exchange assertion's audience is compared byte-for-byte against the backend's auth.canonical_base_url (http://127.0.0.1:8000 locally); localhost signs the wrong audience and every token exchange fails with invalid_grant, even after approval.
    2. The local broker is plain HTTP on port 8100. jentic execute defaults to https://127.0.0.1:8100, which against a local broker fails with server gave HTTP response to HTTPS client. register seeds broker_url=http://127.0.0.1:8100 for a loopback URL.
  • Remote: the broker usually lives on another host, so register does not guess it — pass --broker-url. Without one, jentic execute refuses with RESOLVE_FAILED rather than dialing the local default.

An environment missing its broker URL? Re-run jentic register --broker-url <URL>, or set it without re-registering:

jentic env add local --url http://127.0.0.1:8000 --broker-url http://127.0.0.1:8100 --force

or override per call: jentic execute <op> --broker-scheme http --broker-host 127.0.0.1:8100.

File-less mode (orchestrators). An orchestrator that injects credentials can skip the config file entirely — nothing is read from or written to disk:

export JENTIC_BASE_URL=https://jentic.example.com             # control plane
export JENTIC_BEARER_TOKEN=<token minted for this agent>     # never persisted
export JENTIC_BROKER_URL=https://broker.jentic.example.com   # required for execute on a remote install

Environments, identities, and contexts

An environment is a Jentic install (control-plane URL, optional broker URL); an identity is an actor (this agent), with an Ed25519 keypair scoped per environment or a jak_* API key; a context binds one environment + one identity + an interaction mode. The active context is what every command acts through (--context > $JENTIC_CONTEXT > the persisted active context). To work against several installs:

jentic env add staging --url https://staging.jentic.example.com --broker-url https://broker.staging.jentic.example.com
jentic context create staging --env staging --identity crawler
jentic context use staging
jentic register          # register the identity's key with the new env
jentic context view      # what am I pointing at?

Local install (jenticctl install)

jenticctl install is an interactive wizard that generates ~/.jentic/jentic-one.yaml (--out writes elsewhere) and stands up the app as a local virtualenv (Run locally) or a docker-compose stack (Run in Docker, which pulls the published, signed image by default). For unattended installs pass --defaults (Docker + Postgres, loopback) or --answers <file> (a YAML file overlaid on those defaults); both are held to the wizard's validators. There is no default admin credential: jenticctl setup (or jenticctl wizard) creates the first administrator account.

~/.jentic/
├── jentic-one.yaml      # generated app config
├── docker-compose.yaml  # generated stack (Run in Docker only)
├── data/                # local databases (SQLite files)
└── logs/                # app.log (console) and the optional JSON-lines sink

jenticctl logs tails ~/.jentic/logs/app.log (-f follow, -n lines, --json for the structured sink). The generated files embed secrets in plain text (0600) — fine for a local stack, never for a deployed one (use the Helm values path). Secrets are generated on first install and reused on reinstall — from jentic-one.yaml or its jentic-one-old.yaml backup — so preserved data stays decryptable; don't delete the backup if you plan to reinstall over existing data, and pass --fresh-secrets only to rotate deliberately. What each install path does step by step is in Installing the CLIs.

XDG layout

The jentic agent CLI stores its state per the XDG Base Directory spec:

~/.config/jentic/config.yaml         # environments, identities, contexts, active_context, theme
~/.config/jentic/agent-account.yaml  # record of an agent account an earlier release created (read by `jentic reset`)
~/.local/state/jentic/               # per-identity key material and cached tokens (0600)
~/.cache/jentic/                     # disposable caches

A local environment in config.yaml looks like:

environments:
  local:
    base_url: http://127.0.0.1:8000    # control plane (use 127.0.0.1, not localhost)
    broker_url: http://127.0.0.1:8100  # data plane; http, seeded by register for loopback

Edit it with jentic context / env / identity rather than by hand. XDG_CONFIG_HOME and XDG_STATE_HOME relocate the config and state directories (the layout is enforced on every OS, including Windows); the cache follows the platform's native cache dir.

Uninstall

  • jenticctl uninstall wipes ~/.jentic (venv, source, data, logs) but keeps each config file as a -old backup; --dry-run shows what would go, --yes skips the prompt. A Docker install's database volume is preserved by default so a reinstall reattaches it (--purge deletes it; interactively, uninstall asks).
  • Agent skills (~/.claude/skills/jentic/, project ./AGENTS.md blocks, …) are listed, not removed, unless you pass --remove-skills (user scope; implied by --purge) or --remove-project-skills (the current directory); edited skills are always kept. jentic skill remove --all cleans them up at any time.
    • A SKILL.md at a Jentic skill path with no Jentic provenance is labelled (not written by Jentic) and never removed.
    • A symlinked AGENTS.md is edited at the file it points to. At project scope a link that resolves outside the current directory or into its git metadata is refused and left for you to edit by hand.
    • Skills are removed only after the ~/.jentic teardown succeeds; if one cannot be removed, uninstall still finishes, reports it, and exits non-zero.
  • The agent identity (the XDG directories) survives uninstall; jentic reset removes it. A local agent account an older release created (Unix user, ACLs, sudoers entry) is also left by uninstall and removed by jentic reset.

Legacy ~/.jentic profiles

A machine with a profile store from an older jentic CLI must run jentic migrate once: it copies the profiles into XDG contexts and leaves the legacy tree in place. See jentic migrate --help.

Contributing

Building from a checkout, the MCP Inspector debug loop, the package map, and the install wizard's internals are in Developing the CLI.

Directories

Path Synopsis
Package client is the public, importable Go SDK for the Jentic platform.
Package client is the public, importable Go SDK for the Jentic platform.
auth
Package auth is the SDK-owned authentication layer: environment-scoped Ed25519 identity keys, the RFC 7523 JWT-bearer token exchange, cached token state, and the request-editor middleware that attaches bearers to generated clients.
Package auth is the SDK-owned authentication layer: environment-scoped Ed25519 identity keys, the RFC 7523 JWT-bearer token exchange, cached token state, and the request-editor middleware that attaches bearers to generated clients.
config
Package config is the SDK-owned configuration layer: it resolves WHERE to talk (Control/Broker URLs) and AS WHOM (identity/environment), from either injected environment variables (the file-less path) or ~/.config/jentic/config.yaml.
Package config is the SDK-owned configuration layer: it resolves WHERE to talk (Control/Broker URLs) and AS WHOM (identity/environment), from either injected environment variables (the file-less path) or ~/.config/jentic/config.yaml.
generated/broker
Package broker provides primitives to interact with the openapi HTTP API.
Package broker provides primitives to interact with the openapi HTTP API.
generated/control
Package control provides primitives to interact with the openapi HTTP API.
Package control provides primitives to interact with the openapi HTTP API.
internal/atomicfile
Package atomicfile provides crash-safe atomic file writes for SDK config and credential files via a same-directory temporary file, fsync, and rename.
Package atomicfile provides crash-safe atomic file writes for SDK config and credential files via a same-directory temporary file, fsync, and rename.
paginate
Package paginate is a small, UX-free helper for walking cursor-paginated control-plane list endpoints.
Package paginate is a small, UX-free helper for walking cursor-paginated control-plane list endpoints.
cmd
clidocs command
Command clidocs writes the CLI reference generated from the cobra command tree of both binaries (jentic and jenticctl): machine-readable JSON consumed by the docs SPA, and a Markdown rendering of the same model for readers on GitHub.
Command clidocs writes the CLI reference generated from the cobra command tree of both binaries (jentic and jenticctl): machine-readable JSON consumed by the docs SPA, and a Markdown rendering of the same model for readers on GitHub.
jentic command
Command jentic is the API-spec CLI for the Jentic platform.
Command jentic is the API-spec CLI for the Jentic platform.
jenticctl command
Command jenticctl is the installer and lifecycle CLI for jentic-one.
Command jenticctl is the installer and lifecycle CLI for jentic-one.
internal
agentops
Package agentops is the UX-free execute/inspect core shared by the `jentic` command tree and future embedders (the local MCP server, phase 1 of the local-MCP plan).
Package agentops is the UX-free execute/inspect core shared by the `jentic` command tree and future embedders (the local MCP server, phase 1 of the local-MCP plan).
atomicfile
Package atomicfile provides crash-safe atomic file writes for CLI state and configuration files via a same-directory temporary file, fsync, and rename.
Package atomicfile provides crash-safe atomic file writes for CLI state and configuration files via a same-directory temporary file, fsync, and rename.
cli/api
Package api assembles and runs the `jentic` command tree — the API-spec surface (register/identity, context/env, catalog, apis, search, inspect, execute) for discovering, inspecting, and executing against the Jentic API catalog.
Package api assembles and runs the `jentic` command tree — the API-spec surface (register/identity, context/env, catalog, apis, search, inspect, execute) for discovering, inspecting, and executing against the Jentic API catalog.
cli/apispec
Package apispec parses an OpenAPI document (the embedded vendored control spec, or a --live one fetched from the server) to back the `jentic api` passthrough: path-allowlist matching, operation listing, and per-operation self-description (`api describe`).
Package apispec parses an OpenAPI document (the embedded vendored control spec, or a --live one fetched from the server) to back the `jentic api` passthrough: path-allowlist matching, operation listing, and per-operation self-description (`api describe`).
cli/binder
Package binder builds Cobra flags (and, in form.go, an interactive huh form) from a Go struct by reflection.
Package binder builds Cobra flags (and, in form.go, an interactive huh form) from a Go struct by reflection.
cli/clictx
Package clictx is the CLI-only leaf that bridges the UX-free SDK config (client/config) to the Cobra command layer.
Package clictx is the CLI-only leaf that bridges the UX-free SDK config (client/config) to the Cobra command layer.
cli/cmdcore
Package cmdcore holds the shared base of the Jentic CLI command trees: the App dependency container plus every helper and method used by BOTH the `jentic` (api) and `jenticctl` (ctl) trees.
Package cmdcore holds the shared base of the Jentic CLI command trees: the App dependency container plus every helper and method used by BOTH the `jentic` (api) and `jenticctl` (ctl) trees.
cli/ctl
Package ctl holds the config-driven machinery layered onto the shipped jenticctl installer (impl/6.0): the embedded backend config schema, the defaults<preset<flags precedence ladder, and the overlay that merges the resolved settings into the generated jentic-one.yaml.
Package ctl holds the config-driven machinery layered onto the shipped jenticctl installer (impl/6.0): the embedded backend config schema, the defaults<preset<flags precedence ladder, and the overlay that merges the resolved settings into the generated jentic-one.yaml.
cli/ctl/generated
Package generated holds the backend configuration struct generated by go-jsonschema from the vendored config schema (config.go, regenerated via `make generate-config`), plus a hand-written stable alias (this file).
Package generated holds the backend configuration struct generated by go-jsonschema from the vendored config schema (config.go, regenerated via `make generate-config`), plus a hand-written stable alias (this file).
cli/ctlcmd
Package ctlcmd is the jenticctl command tree — the operator/lifecycle CLI (install, wizard, setup, doctor, status, start/stop, logs, update, uninstall).
Package ctlcmd is the jenticctl command tree — the operator/lifecycle CLI (install, wizard, setup, doctor, status, start/stop, logs, update, uninstall).
cli/localagentcmd
Package localagentcmd holds the local agent client commands extracted from cmdcore (ARCH-1): `jentic setup` (register + skill install + MCP entry) and `jentic skill` (the agent-runtime skill engine shared with jenticctl's wizard/update/uninstall).
Package localagentcmd holds the local agent client commands extracted from cmdcore (ARCH-1): `jentic setup` (register + skill install + MCP entry) and `jentic skill` (the agent-runtime skill engine shared with jenticctl's wizard/update/uninstall).
cli/prompt
Package prompt holds the shared, brand-themed interactive form helpers used across the whole CLI (both the jentic and jenticctl trees).
Package prompt holds the shared, brand-themed interactive form helpers used across the whole CLI (both the jentic and jenticctl trees).
cli/ux
Package ux is the CLI's audience-aware I/O layer (impl/3.1, impl/3.2).
Package ux is the CLI's audience-aware I/O layer (impl/3.1, impl/3.2).
config
Package config holds filesystem paths and default settings for the Jentic CLI.
Package config holds filesystem paths and default settings for the Jentic CLI.
gitauth
Package gitauth provides URL-scoped git configuration environment variables and child-process environment scrubbing for installer and updater commands.
Package gitauth provides URL-scoped git configuration environment variables and child-process environment scrubbing for installer and updater commands.
install
Package install powers the `jenticctl install` onboarding wizard: an interactive form (Charm huh + lipgloss) that collects deployment + configuration choices, generates a jentic-one.yaml mirroring the app's AppConfig, then builds the stack, applies migrations, and starts the app.
Package install powers the `jenticctl install` onboarding wizard: an interactive form (Charm huh + lipgloss) that collects deployment + configuration choices, generates a jentic-one.yaml mirroring the app's AppConfig, then builds the stack, applies migrations, and starts the app.
localagent
Package localagent holds the OS-level teardown primitives for agent accounts provisioned by older jentic releases: the dedicated `<operator>-local-agent` Unix user (its named-user directory ACLs, passwordless-launch sudoers line, and home) and the per-runtime `_jentic-<runtime>` MCP service accounts plus the root-owned jentic copy they ran.
Package localagent holds the OS-level teardown primitives for agent accounts provisioned by older jentic releases: the dedicated `<operator>-local-agent` Unix user (its named-user directory ACLs, passwordless-launch sudoers line, and home) and the per-runtime `_jentic-<runtime>` MCP service accounts plus the root-owned jentic copy they ran.
mcpcfg
Package mcpcfg writes the `jentic mcp` server entry into each supported agent runtime's native MCP configuration (local-MCP item 2-E3): Cursor's `~/.cursor/mcp.json`, Claude Desktop's `claude_desktop_config.json`, Claude Code via a `claude mcp add` exec plan, and Codex's `~/.codex/config.toml`.
Package mcpcfg writes the `jentic mcp` server entry into each supported agent runtime's native MCP configuration (local-MCP item 2-E3): Cursor's `~/.cursor/mcp.json`, Claude Desktop's `claude_desktop_config.json`, Claude Code via a `claude mcp add` exec plan, and Codex's `~/.codex/config.toml`.
proc
Package proc holds small filesystem/process helpers shared by the start and stop commands: reading a PID file, liveness probing, and waiting for exit.
Package proc holds small filesystem/process helpers shared by the start and stop commands: reading a PID file, liveness probing, and waiting for exit.
serverinfo
Package serverinfo probes a running jentic-one server for liveness and version, used to decorate the help screen and install wizard with the server's version alongside the CLI's own.
Package serverinfo probes a running jentic-one server for liveness and version, used to decorate the help screen and install wizard with the server's version alongside the CLI's own.
skillgen
Package skillgen renders one canonical "how to use Jentic via the CLI" skill into each supported agent runtime's ("operator") native skill/instruction layout.
Package skillgen renders one canonical "how to use Jentic via the CLI" skill into each supported agent runtime's ("operator") native skill/instruction layout.
theme
Package theme is the single source of truth for the Jentic CLI's colour scheme.
Package theme is the single source of truth for the Jentic CLI's colour scheme.
update
Package update backs `jenticctl update`: it inspects what is installed (via the manifest and build-time metadata) and compares its version against the latest release tag to report whether a newer build is available, then fetches and swaps in the rebuilt binaries.
Package update backs `jenticctl update`: it inspects what is installed (via the manifest and build-time metadata) and compares its version against the latest release tag to report whether a newer build is available, then fetches and swaps in the rebuilt binaries.
pkg
clitree
Package clitree exposes the built-in CLI command-tree builders as core.TreeBuilders so a downstream module (a separate overlay binary) can compose them via core.NewRootCmd without editing the built-in tree.
Package clitree exposes the built-in CLI command-tree builders as core.TreeBuilders so a downstream module (a separate overlay binary) can compose them via core.NewRootCmd without editing the built-in tree.
core
Package core exposes the CLI's injectable dependency container and root builder so a downstream package can compose its own binaries without editing the built-in command tree.
Package core exposes the CLI's injectable dependency container and root builder so a downstream package can compose its own binaries without editing the built-in command tree.
tools
configgen command
Command configgen post-processes the go-jsonschema output in internal/cli/ctl/generated/config.go so struct fields whose JSON Schema default is non-zero carry no omitempty/omitzero struct tag options (#1832).
Command configgen post-processes the go-jsonschema output in internal/cli/ctl/generated/config.go so struct fields whose JSON Schema default is non-zero carry no omitempty/omitzero struct tag options (#1832).
specgen command
Command specgen is the single generator for every spec-derived companion the SDK needs beyond the oapi-codegen client (impl/2.1 §4).
Command specgen is the single generator for every spec-derived companion the SDK needs beyond the oapi-codegen client (impl/2.1 §4).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL