Skip to main content

Agents-first identity layer — local system users and owned sub-users, with email assignment.

Project description

zehut

Agents-first identity layer for Linux hosts.

zehut provisions and tracks machine-local identities — system-backed (real OS users via useradd) plus sub-users (metadata-only identities owned by a system-backed parent) — and gives each one a deterministic email address from a configured domain. A separate CLI consumes zehut's users.json registry to provide secrets management on top of this identity foundation.

Install

uv tool install zehut

The same tool is also published as identity-cli (uv tool install identity-cli) and installs two interchangeable commands — zehut and identity. Use whichever name you prefer; every example below works the same with identity substituted for zehut.

Quick start

# One-time bootstrap (needs sudo).
sudo $(which zehut) init --domain agents.example.com --default-backend system

# Create a system-backed user — the parent identity (an "agent").
sudo $(which zehut) user create agent --nick Ali --about "QA agent"

# Create sub-users owned by the agent — e.g. per-bot identities.
# Sub-users must have a system-backed parent; deleting the parent
# cascade-deletes every sub-user under it.
sudo $(which zehut) user create bot1 --subuser --parent agent --about "scraper"

# List, show, switch.
zehut user list
zehut user show agent
zehut user switch agent            # system: exec sudo -u agent -i
eval "$(zehut user switch bot1)"   # sub-user: sets ZEHUT_IDENTITY

# Health check.
zehut doctor

Documentation

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zehut-1.2.0.tar.gz (206.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zehut-1.2.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file zehut-1.2.0.tar.gz.

File metadata

  • Download URL: zehut-1.2.0.tar.gz
  • Upload date:
  • Size: 206.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for zehut-1.2.0.tar.gz
Algorithm Hash digest
SHA256 f5568d9d1778b15e566307332ca5f37b76f01c122c155da0e920b847ab73a216
MD5 23dd12718ba124506a829f5990e15604
BLAKE2b-256 1cf21094626c3f956d7c85051100cdf1022c508c40bc1360663d78ce699dc7d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for zehut-1.2.0.tar.gz:

Publisher: publish.yml on agentculture/identity-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zehut-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: zehut-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for zehut-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28e4c07ceb62c1f5908666b19c9a9ec94da59c68fd7504a91b0bea01593de6f4
MD5 1d3b53f5b3cced7b905c5cb2f094ddd6
BLAKE2b-256 22aafd06732beea2a7eaf6e62af47728cefcc9d3fce15ef64764a83d3f71a961

See more details on using hashes here.

Provenance

The following attestation bundles were made for zehut-1.2.0-py3-none-any.whl:

Publisher: publish.yml on agentculture/identity-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page