Skip to main content

The hyper command-line tool

hyper is the Hypermeter command line. You, a script, or an AI agent that works for you can use it to call Hypermeter operations from a terminal. It does not replace the web app. To follow your work in a terminal window, use the terminal app, hyper-tui, which is a separate download.

Beta and experimental. hyper is an early release. Its commands and the operations it can call can change between releases. Public downloads are not available yet.

How it works​

The Hypermeter server publishes a catalogue of operations. Each operation has a name, such as workflow.draft.get, a description, and the input that it accepts. hyper reads the catalogue for your environment and calls its operations. The server validates each call, applies the access rules, and returns guidance for the next step. Compatible new fields in a response do not require an update of hyper.

Public API support​

The operation API has no published stable release yet. Access uses your sign-in and approved grants.

Operations will declare a status: stable, beta, or internal. A breaking change to a published stable operation gets a new operation ID, and the old ID stays supported for at least 180 days after the replacement is available and publicly announced. A breaking change to a published beta operation gets at least 30 days of notice. Development contracts have no public support period.

The public reference will include downloadable OpenAPI documents, and curl and Python examples for each eligible operation. It will list the operations available to each caller type.

The public JSON:API resource, relationship, and Atomic endpoints are removed. To move an integration to operations, see Native API and JSON:API migration.

Sign in with your account​

The default mode is delegate, for your personal sign-in and Task grants. Create a profile for your environment, then sign in:

hyper profile set work --api-origin https://<hypermeter-environment> --use
hyper login
hyper auth status

hyper login opens your system browser. Use hyper login --device to sign in from another device. hyper does not accept a password or token as an argument.

Sign in with your own account. hyper stores the session in the credential store of the operating system. hyper logout revokes the live grants of this client and removes the session.

Access to your organization​

An organization owner decides on the Agent access page which clients can connect and how much data each client can read. See Allow AI apps in your organization.

  • External agents must be on for the organization. While they are off, Hypermeter refuses hyper calls and the Agents section is unavailable.
  • hyper calls over HTTP, so it does not need the MCP connections switch.
  • The owner can limit how long one sign-in lasts. When Hypermeter asks you to authenticate again, run hyper login. If device sign-in returns the same expiry message, use browser login or sign out of your identity provider first. See Set a sign-in limit.

Your work runs in a Task. Most operations need a grant for the Task, which you approve in the browser. A grant names its operations, its resources, and how long it lasts. It can read (Read) or author changes (Author).

You follow Tasks in the Agents section of the web app. See Build with a guided Task. To end the access of the agent, finish or cancel the Task.

No grant lets a client do the following. These actions stay in the web app, and hyper does not list or offer them:

  • Publish a workflow or a cube.
  • Start, restart, or cancel a run.
  • Create, change, or delete a schedule.
  • Enable or disable a charging rule.

Call operations​

List the operations that you can call, and describe one:

hyper op list
hyper op describe <operation>

Call an operation with its input as JSON, from a file, or as flags:

hyper op call <operation> --input '{"key":"value"}'
hyper op call <operation> --input-file input.json
hyper op call <operation> --arg key=value

Some operations also have their own command, for example hyper task create or hyper session get. Add --help to any command to print its help without running it.

A first delegate session​

Calls for an organization name it with --tenant, or use the tenant of the profile (hyper profile set work --tenant <id>). Calls that need a grant also name their Task with --task. Both are routing options, separate from the JSON input of the operation.

  1. Find the organizations that admit hyper, and the data level in each: hyper session get.
  2. Start a Task: hyper task create --tenant <tenant-id> --input-file task.json. hyper op describe task.create lists the required input (title, goal, and goal_profile). The result holds the Task id.
  3. Ask for access for the Task: hyper op call access.request --tenant <tenant-id> --input-file access.json, with the Task id, the mode (read or author), the operations and resources, and a duration. hyper op describe access.request shows the exact shape. You approve the grant in the browser. On a terminal, hyper opens the page and continues after you approve.
  4. Call operations with the Task: hyper op call workflow.list --tenant <tenant-id> --task <task-id>.

Without a terminal, or with --json, hyper prints the result as JSON. Use --fields to keep selected fields and --output to write the complete result to a file. Run hyper help exit-codes for the exit codes that scripts can check.

Install skills for an AI agent​

Skills are Hypermeter guidance for an agent. They describe the available operations and how to use them. After you create a profile, list and install the skills:

hyper skills list
hyper skills install

The default directory is ~/.agents/skills. For Claude Code, add --target claude. For a project, use --target project or --target claude-project. Use --dir DIR to choose another directory.

Update the installed skills, or remove a named skill:

hyper skills update
hyper skills remove hypermeter

Each command reports which skills it changed. Installation and updates keep the files that you edited and do not overwrite files that they do not manage. If a command reports a conflict, move your edited file and retry.

You do not need to sign in to download skills. To call operations, the agent needs an authenticated connection and the required permissions. In a sandbox, use the MCP connection of the host or a token that the host supplies, and keep remembered personal logins outside the sandbox.

Export selected workflows as a blueprint​

A blueprint is a reusable package of workflows and related resources. An organization owner can use blueprint.export to package the drafts of selected workflows for another organization. The export does not change the drafts or start a run.

  • Select up to 32 workflows. You can include the cubes that they are bound to, and the spaces and views that report on those cubes. Reporting requires its cubes.
  • The export keeps the job instructions, shared instruction versions, disabled jobs, Charge grain, Load job source order, and charged-source aliases.
  • The blueprint uses local references, not the IDs of the source organization.
  • Credentials become required secret inputs. The export contains neither the secret key of the source nor its value. You select a secret key in the destination organization when you plan the import.
  • An export holds at most 512 resources and 5 MiB.

The export stops when a draft contains literal credentials or relies on resources outside the selection. Replace literal credentials with SecretRef inputs, remove the unsupported external references, and try again.

Import a blueprint as drafts​

  1. Read the blueprint format with schema.get and the schema id blueprint.
  2. Call blueprint.plan to validate the blueprint and review what it creates. If variables are missing, the plan asks you to choose their values. A secret variable takes a secret key name. You enter the secret value in the browser, through secret.request.
  3. Call blueprint.apply with the same blueprint, the variables that the plan returned, and its plan_digest. The result is an accepted job.
  4. Call operation.wait to check the job. With timeout_seconds, it waits up to 60 seconds. It returns finished: true as soon as the job ends, or finished: false when the time runs out. Then call operation.wait again. A wait only reads the job, so it needs no mutation ID.

The job creates drafts and disabled charging rules. Schedules, publishing, and runs need separate actions by an owner in the web app. If the blueprint creates space grants, the owner must first confirm them in the browser.

If a submission is interrupted, see When a change loses its response.

Author reports in a space​

  1. Call space.context.get for a space that you can access. It lists the cubes and fields that are available in that space.
  2. Call visualization.suggest for chart suggestions, and check them with visualization.validate.
  3. Call report.meta.get for the public member names of a query. Check your query with report.query.validate, then run it with report.query.run. These three operations require space_id.
  4. Call view.validate to validate a view before you create or update it.

Report queries return at most 100 rows by default. The maximum limit that you can request is 500.

A large space can return more than an AI client accepts in one result. space.context.get and report.meta.get then read in pages:

  • Pass page_size. The maximum is 200 fields. A cube or view without fields counts as one.
  • Optionally pass query_identifier to read one cube or view.
  • Continue with the returned next_offset as offset, and pass the digest of the first page as expected_catalog_digest or expected_meta_digest.

Pages show only what the space can already query.

The client needs the Aggregates data level to see grouped report values, and the Rows level for individual records. Below that level, the result contains counts and schema digests without values. If space access changes during a query, repeat the query under the current access rules.

An owner must confirm every cube-grant change in the browser. Auto-approve does not replace this confirmation. task.get lists the recent confirmations of the Task. A change that the owner made in the browser has none.

Read an operation result​

For JSON output, read the whole envelope and its result_kind:

result_kindWhat it containsWhat to do
outputThe full result of the operation.Use it.
acknowledgementThe identity of the committed change and a read target. You get it for a replay, or when the full result is too large for MCP.Use the read target to get the current state. A confirmed deletion needs no reload.
committed_not_visibleA confirmation of the change, without a result at your current access level.Do not send the change again.

An accepted operation still has a run to observe, even when its result is hidden.

When a change loses its response​

Keep the original mutation ID. Do not send the change again with a new ID, and never resend the original command automatically. A missing or inaccessible receipt does not prove that the change failed.

  • Use receipt.get to recover the result without applying the change again. hyper journal reconcile checks the receipts of the commands that hyper recorded, and does not send them again.
  • A pending fence does not settle the original change. A receipt lookup can return up to 32 Task and interaction references, with has_more when more exist. They can belong to another command of the same operation. Resolve only the ones that you recognize, then fence again.

See Native API and JSON:API migration for how to recover an uncertain command.

Steps that need a person​

Some steps need a person in the browser, for example to enter a secret value or to confirm an action. The operation then returns an interaction with a link.

How you run hyperWhat happens
On a terminalhyper opens the link, waits until the step is complete, and repeats the call. When one step leads to another, such as a choice, then a secret, then your approval, hyper follows each in turn.
Without a terminalhyper prints the interaction and exits with code 10.
Without a terminal, with --wait-interactionshyper opens nothing and waits. With --json, it prints each step that needs a person to standard error as one JSON line, and the final result to standard output.

With --wait-interactions, the same hyper process continues the call after each step. Do not start the call again from another process. A declined, expired, or unanswered step ends the call without repeating it.

Preview budget​

A Preview reserves its maximum source calls and runtime from the Preview budget of the Task when it starts. When it finishes, the budget keeps only what the Preview used. The Task page shows what Previews used and what running Previews have reserved.

When a Preview no longer fits the budget, the response asks you to approve a higher budget. The approval page suggests the limit that the next Preview needs. You can set a higher limit, so that the agent can run more Previews without asking again, but not a lower one.

Source requests​

Approving source requests does not start a Preview. After the approval, get a fresh Preview plan before you start the Preview. See Approve what your agent asks for.

Follow a run​

You start a run in the web app. The agent gives you a link to the run settings, where you review the inputs and select Execute. Publishing does not start a run, and Preview results do not count as data from a run.

The agent can tell you whether the workflow waits to be published, waits for your first run, is running, or has finished: succeeded, failed, or canceled. It can wait for the result and then check the report. Stopping the wait does not stop your run.

Data protections​

  • hyper never asks for secret values. You enter them in the browser.
  • Output from the server is sanitized before it reaches your terminal.
  • hyper contains no AI model of its own.