Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Test bootstrap installers
run: |
bash -n packaging/install.sh
bash packaging/tests/test-install.sh

- name: Install the toolchain
run: |
rustup toolchain install stable --profile minimal --no-self-update
Expand Down Expand Up @@ -52,6 +57,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Run PowerShell installer fixtures
shell: pwsh
run: pwsh -NoProfile -File packaging/tests/test-install.ps1

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c
with:
Expand Down Expand Up @@ -82,6 +91,9 @@ jobs:
cargo install --git https://github.com/eggstack/eggpack --rev "$revision" --locked eggpack-cli
eggpack --version

- name: Check installer release contract
run: python3 scripts/check-installer-contract.py

- name: Check generated release workflow
run: >-
eggpack ci check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ jobs:
if-no-files-found: error
- name: Prepare staging payload
shell: bash
run: "'eggpack' 'ci' '_prepare-stage' '--contract' 'release/eggpack/distribution.toml' '--release-manifest' './eggpack-finalized/release-manifest.json' '--finalized-root' './eggpack-finalized/root' '--github-policy' 'eggpack-runtime/github-draft.json' '--install-policy' 'release/eggpack/install-policy.toml' '--output-dir' './eggpack-staging' '--output-payload' './eggpack-staging-payload.json'"
run: "'eggpack' 'ci' '_prepare-stage' '--contract' 'release/eggpack/distribution.toml' '--release-manifest' './eggpack-finalized/release-manifest.json' '--finalized-root' './eggpack-finalized/root' '--github-policy' 'eggpack-runtime/github-draft.json' '--install-policy' 'release/eggpack/install-policy.toml' '--output-dir' './eggpack-staging' '--output-payload' './eggpack-staging-payload.json' '--installer-presentation' 'release/eggpack/installer-presentation.json' '--source-root' '${{ github.workspace }}'"
- name: Stage GitHub draft release
shell: bash
env:
Expand Down
145 changes: 143 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ include = [
"/docs/client-setup.md",
"/docs/commands.md",
"/docs/configuration.md",
"/docs/eggpool.md",
"/docs/how-it-works.md",
"/docs/troubleshooting.md",
"/docs/updating.md",
Expand All @@ -34,6 +35,8 @@ include = [
[dependencies]
eggpass-auth = { version = "0.1.1", path = "crates/eggpass-auth" }
base64 = "0.23.1"
# Exact Eggress reverse-client wire/API line used by EggPool.
eggress-protocol-reverse = "=1.0.12"
dirs = "7.0.0"
# Self-update mechanics. Acquisition, transport, release-manifest projection,
# digest binding, staging, locking, and rollback are owned by the published
Expand Down Expand Up @@ -71,6 +74,8 @@ ureq = "3.5.2"
# in Cargo.lock; the check is the parser, so do not bump it in passing.
url = "=2.5.8"
webbrowser = "1.2.7"
# Clear one-time enrollment and private-key buffers after use.
zeroize = "1.9.1"

[target.'cfg(unix)'.dependencies]
# Unix-only process management and raw-terminal support.
Expand Down
71 changes: 70 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,56 @@ need a separate provider API key.

## Install

Install the published CLI from crates.io:
Install the latest prebuilt release on Linux or macOS (Bash):

```sh
curl -fsSL https://github.com/eggstack/eggpass/releases/latest/download/install.sh | bash
```

To pin an exact stable release, use the matching release script and version:

```sh
curl -fsSL https://github.com/eggstack/eggpass/releases/download/vX.Y.Z/install.sh | bash -s -- --version X.Y.Z
```

On Windows, from PowerShell, download and run the latest installer:

```powershell
$installer = Join-Path $env:TEMP "eggpass-install.ps1"
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/eggstack/eggpass/releases/latest/download/install.ps1" -OutFile $installer
& $installer
```

For a pinned Windows release, change both the script URL to
`https://github.com/eggstack/eggpass/releases/download/vX.Y.Z/install.ps1` and
pass `-Version X.Y.Z` to the script. The installers verify the published SHA-256
sidecar and the candidate's exact `eggpass --version` identity before installing.
They default to a per-user directory (`~/.local/bin` on Unix or `%LOCALAPPDATA%\Eggpass`
on Windows); Bash can add a safe PATH block to a Bash/Zsh profile. The Bash
installer needs Bash, `curl`, and `sha256sum` or `shasum`; Windows needs
PowerShell 5.1 or later. Prebuilt installs do not require Rust. If the Windows
install directory is not already on PATH, add `%LOCALAPPDATA%\Eggpass` to PATH,
use the full executable path, or for the current PowerShell session run:

```powershell
$env:Path = "$env:LOCALAPPDATA\Eggpass;$env:Path"
```

A system-wide install requires an explicitly elevated shell (`--system` on Bash
or `-System` in PowerShell); neither installer invokes elevation for you. For
example, an explicit Unix system install is:

```sh
curl -fsSL https://github.com/eggstack/eggpass/releases/latest/download/install.sh | sudo bash -s -- --system
```

Unsupported targets fail rather than installing a binary without a supported
updater mapping. On a supported target, Cargo fallback is attempted only when the exact GitHub release
binary asset returns HTTP 404; it requests that same exact crate version, so a
brief crates.io publication lag requires retrying later. Other transport or
verification failures stop without fallback.

Cargo remains a separate supported install method:

```sh
cargo install eggpass
Expand Down Expand Up @@ -66,6 +115,25 @@ curl http://127.0.0.1:8484/v1/chat/completions \

Use `eggpass run --foreground` to keep the server in the current terminal.

### Start at boot and keep it available on Linux

After signing in and creating at least one client key, open the same user's
crontab with `crontab -e`. For the standard per-user install, paste:

```cron
@reboot "$HOME/.local/bin/eggpass" croncheck >> "$HOME/.config/eggpass/cron.log" 2>&1
*/5 * * * * "$HOME/.local/bin/eggpass" croncheck >> "$HOME/.config/eggpass/cron.log" 2>&1
```

These entries assume the binary is at `~/.local/bin/eggpass` and use the
default data directory. If installed elsewhere, replace the binary path with
the absolute path from `command -v eggpass`. If you use `EGGPASS_HOME` or
`XDG_CONFIG_HOME`, set the same value in the crontab. `croncheck` starts the
daemon only when it is not already running; it requires a client key. Cron
keeps the daemon available, while the running daemon independently refreshes
enabled xAI/Grok and OpenAI/ChatGPT credentials as needed (see
[How it works](docs/how-it-works.md)).

## Connect a client

| Setting | Value |
Expand Down Expand Up @@ -124,6 +192,7 @@ cleared when the daemon stops.
| --- | --- |
| `eggpass login` | Sign in to a provider. |
| `eggpass logout` | Revoke and remove a provider credential. |
| `eggpass refresh` | Force-refresh stored credentials without an inference request. |
| `eggpass status` | Show provider login and server state. |
| `eggpass usage` | Show subscription usage where available, preferring the running daemon's cached report. |
| `eggpass run` | Start the server. Use `--foreground` to keep it in the terminal. |
Expand Down
Loading
Loading