Skip to main content

Frevana Agent App Runner

Paste the following into Codex or Claude Code and replace <AGENT_APP_URL> with a Frevana Agent App share link. Append a task or input if you already know what you want the App to do. Otherwise, the agent first reads the App's tasks and suggests what you can do.

Help me install this Agent App:
<AGENT_APP_URL>

Follow the instructions at https://frevana.com/SKILL.md

Browser authorization

The agent uses Python 3.10+ to install the pinned PyPI package in a user-owned virtual environment, then runs frevana-runner prepare "<share URL>". Platform-specific commands and task instructions are in the installation guide.

The share URL selects dev or production automatically; an explicit --environment must match it. On first use, open the printed authorization URL in a browser on this computer, sign in and choose Allow. The Runner receives the callback, stores credentials in the system credential store and renews them automatically. Preparing downloads the App snapshot and makes its jobs and scripts available locally. The agent uses frevana-runner exec when you choose a task.

Complete the browser authorization within 10 minutes. If the page says authorization could not be completed, run prepare again to open a fresh link; refreshing an expired page does not restart authorization.

Each environment has its own registration, credentials and cached results. Existing legacy Runner credentials are not imported. Copies from the same grant reuse saved results; a new grant starts a separate cache without deleting old files.

frevana-runner logout clears local production credentials. For dev use frevana-runner --environment development logout. To revoke the server authorization too, open the Authorized apps URL printed by logout and locate its grant ID.

Deployment prerequisites

Enable the agent_app_external_run scenario and assign POST /agent-app-shares/:share_code/download and GET /subscriptions/user through the existing OAuth scenario admin page, along with the business operations required by the package. Before asking the user to authorize, the Runner checks that the public resource metadata advertises the agent_app_external_run scope. The server checks current download and business permissions on each request; adding an operation does not require new consent. Existing credentials, including older route-hash scopes, are reused and renewed without changing their grant or cache. A download rejected with HTTP 403 leaves the authorization intact so it can be reused after access is restored. Publish this Runner version before enabling NEXT_PUBLIC_AGENT_APP_RUNNER_ENABLED=true in the Web build, independently for each environment.

Credit shortfalls and continuing work

frevana-runner credits "<share URL>" reads the current authorization's balance through GET /subscriptions/user. JSON output contains balance_status (known or unknown), available_credits (a number or null), top_up_url, and upgrade_url. Exit code 1 and an error mean the balance could not be confirmed, not that it is zero. This command does not need to download or execute the App and does not calculate task consumption.

During exec, an observed Frevana credit refusal produces at most one JSON event on stderr with event: "frevana_credit_required", code: "insufficient_credits", and the same billing links. The child process keeps its stdout, stderr and exit code; responses are forwarded unchanged and no request is retried. Observation covers bounded JSON error responses, failed task envelopes and SSE error events, including gzip/deflate. Each JSON body or SSE event is limited to 64 KiB for inspection; larger payloads, binary data and unsupported content encodings pass through without inspection. Scripts using a hardcoded API origin bypass the relay, so their explicit errors must still be handled using the guide.

The agent checks which results actually exist, explains the unfinished steps and offers the existing recharge and upgrade pages. The chat tells the user to use the authorized Frevana account and return with "continue" after purchasing. On return, the agent checks the balance and existing job status, then uses the App's existing resume support. The Runner does not terminate scripts, perform automatic payment or introduce a generic task-resume engine.

Publish the package and update the website

Run these commands from the Runner checkout. The release script uses uv and keeps the publishing token in macOS Keychain. On first use or after rotation, create a PyPI token scoped to frevana-agent-app-runner and paste it at the hidden terminal prompt.

uv run --script scripts/release.py configure-keychain
  1. Set the version in pyproject.toml and update the package pins and virtual environment paths in SKILL.md. From the release checkout, run uv run --script scripts/release.py build. It runs the tests, builds a wheel and source distribution in a fresh directory under dist/, checks the metadata and smoke-tests a fresh installation of the wheel.
  2. Run uv run --script scripts/release.py publish <artifact-directory> with the directory printed by the build. The script uploads the two files, compares their SHA-256 hashes with PyPI and verifies a fresh installation of the exact published version. Keep the same directory for any upload retry. Before rolling out a release with new OAuth operations, verify the deployment prerequisites above and prepare a test share.
  3. With frevana-web checked out next to this repo, run uv run --script scripts/release.py sync-guide. It checks that both artifacts for the guide's pinned version are on PyPI before copying the Markdown to frevana-web/public/SKILL.md. For documentation-only edits, begin here using the existing published pin.
  4. Include the guide in the Web change. After it lands in master, run the Web repository's Deploy Production workflow from master and wait for it to succeed. Run uv run --script scripts/release.py verify-guide to compare the production response with the local Markdown. When introducing a new prompt link, switch the Web copy prompt after its destination is live.

Metadata

Release files for frevana-agent-app-runner 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for frevana-agent-app-runner 0.1.1
File Size Uploaded Provenance Actions
frevana_agent_app_runner-0.1.1.tar.gz 36.2 kB Without provenance Details for frevana_agent_app_runner-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for frevana-agent-app-runner 0.1.1
File Interpreter ABI Platform Actions
frevana_agent_app_runner-0.1.1-py3-none-any.whl Python 3 none any Details for frevana_agent_app_runner-0.1.1-py3-none-any.whl

Total release size: 54.3 kB

Release files / frevana_agent_app_runner-0.1.1.tar.gz

Download URL frevana_agent_app_runner-0.1.1.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb5ab78e33bd4cc1e76816f263116d6771ebf335dc517b203a9ba58a8318e41e
BLAKE2b-256 checksum
How to use checksums
27876a53c4df12d2c502c9b215a06e779724604b2a404d8d68a0af3d743fe877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / frevana_agent_app_runner-0.1.1-py3-none-any.whl

Download URL frevana_agent_app_runner-0.1.1-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f154ef57c570c9beee31d4911686833004af665a1dec38ab245b3cf4536b088e
BLAKE2b-256 checksum
How to use checksums
89254f35615299f95a13b44dee5ae966fa65477d48cd10ae52eff1d7d8631335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for frevana-agent-app-runner 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page