The Fruxon SDK is a lightweight Python client for integrating with the Fruxon platform.
Project description
fruxon
Run, build, and orchestrate AI agents from your terminal — the official Python SDK and CLI for the Fruxon platform.
Install
pip install fruxon
Requires Python 3.10+.
30-second quickstart
fruxon login # opens a browser; stores the API key in your OS keychain
fruxon agents list # see what's deployed in your org
fruxon run my-agent -p question="hello"
fruxon chat my-agent # interactive multi-turn REPL
fruxon doctor will tell you if anything's misconfigured.
The CLI
| Command | What it does |
|---|---|
fruxon login |
Browser-based sign-in. API key goes to your OS keychain (Keychain on macOS, Secret Service on Linux, Credential Manager on Windows). |
fruxon whoami |
Show the active key/org and where each value came from (flag, env, keychain, file). |
fruxon logout |
Forget stored credentials. |
fruxon agents list |
Browse every agent in your org. Use --output json for scripting, --output id for shell pipes. |
fruxon agents get <id> |
Inspect one agent — display name, deployed revision, tags, and the parameters it expects. |
fruxon run <agent> |
One-shot execution. Streams text by default; pass --output json or --no-stream for the full result envelope. |
fruxon chat <agent> |
Interactive REPL with session continuity. |
fruxon trace <agent> <record-id> |
Inspect a past execution — duration, cost, step-by-step trace. |
fruxon export |
Bundle a multi-file Python agent into a single file for import into Fruxon. |
fruxon doctor |
Diagnose local setup (interpreter, SDK version, credentials, API reachability, auth). |
fruxon config |
Read/edit the persistent CLI config. |
fruxon run — examples
fruxon run my-agent -p question="Hello" -p lang=en
fruxon run my-agent -p temp:=0.7 -p tags:='["a","b"]' # ':=' for typed JSON
fruxon run my-agent -p prompt=@./prompt.md # '@file' reads from disk
fruxon run my-agent --params ./params.json # whole-object input
cat params.json | fruxon run my-agent --stdin
fruxon run my-agent --output json # full result envelope
fruxon run my-agent --revision 42 # pin a specific revision
Agent mode
When CLAUDECODE=1, CI=1, or FRUXON_AGENT_MODE=1 is set, the CLI:
- defaults
--outputtojsonforrun,agents get,agents list,doctor, - suppresses banners and color chrome,
- emits a one-line JSON manifest on bare
fruxoninvocation describing auth state and next-step commands.
This makes the CLI ergonomic for LLM agents and CI pipelines without extra flags.
The Python client
from fruxon import FruxonClient
client = FruxonClient(api_key="...", org="acme-corp")
# One-shot
result = client.execute(
"support-agent",
parameters={"question": "How do I reset my password?"},
)
print(result.response)
print(f"{result.trace.duration}ms · ${result.trace.total_cost:.4f}")
# Multi-turn — thread the session ID into subsequent calls
followup = client.execute(
"support-agent",
parameters={"question": "Tell me more"},
session_id=result.session_id,
)
# Streaming
for chunk in client.stream_text("support-agent", parameters={"question": "Hi"}):
print(chunk, end="", flush=True)
# Lower-level: typed SSE events (text, tool_call, tool_result, done, …)
for event in client.stream("support-agent", parameters={"question": "Hi"}):
...
# Discovery
for agent in client.list_agents():
print(agent.id, agent.current_revision)
params = client.get_agent_parameters("support-agent", revision=1)
The client picks up FRUXON_API_KEY, FRUXON_ORG, and FRUXON_BASE_URL only if you read them yourself — the constructor takes explicit values. The CLI resolves them automatically (flags → env → stored config).
fruxon export — bundle a multi-file agent
fruxon export --copy # auto-detect entry point, copy to clipboard
fruxon export # auto-detect, print to stdout
fruxon export -o export.py # write to file
fruxon export graph.py --copy # explicit entry point
Works with LangChain, LangGraph, CrewAI, Google ADK, AutoGen, and any other Python agent framework. Scans for framework imports to find the entry point, traces local imports through Python's AST, and emits a single consolidated file (third-party packages stay external).
Credentials & storage
The CLI resolves auth in this order (first non-empty wins):
- Explicit flags —
--api-key/--org/--base-url - Environment —
FRUXON_API_KEY/FRUXON_ORG/FRUXON_BASE_URL - Stored credentials (managed by
fruxon login)
The stored layer is split:
- API key → OS keychain via
keyring. SetFRUXON_NO_KEYRING=1or let the keyring be unavailable to fall back to a0600JSON file. - Non-secrets (
org,base_url) → plain JSON under~/.fruxon/credentials.
fruxon config list shows both sources side by side.
Environment variables
| Var | Effect |
|---|---|
FRUXON_API_KEY |
Default API key. |
FRUXON_ORG |
Default organization. |
FRUXON_BASE_URL |
Override the API base URL (staging / self-hosted). |
FRUXON_CONFIG_DIR |
Override the credentials directory (default ~/.fruxon). |
FRUXON_DASHBOARD_URL |
Override where fruxon login points the browser. |
FRUXON_AGENT_MODE=1 |
Optimize for AI-agent / script consumption (also auto-detected from CLAUDECODE=1 / CI=1). |
FRUXON_NO_KEYRING=1 |
Force the JSON-file fallback for the API key. |
FRUXON_NO_BANNER=1 |
Suppress all branding chrome. |
FRUXON_NO_UPDATE_CHECK=1 |
Opt out of the "newer version available" notifier. |
NO_COLOR=1 |
Standard convention — disables color output. |
Docs
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fruxon-0.5.6.tar.gz.
File metadata
- Download URL: fruxon-0.5.6.tar.gz
- Upload date:
- Size: 111.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adf5216b348f065d69dd9ec2f3efa47d48621c488129921bef572b970cd1d918
|
|
| MD5 |
f29e324e3f4415534e4764661f027323
|
|
| BLAKE2b-256 |
8d06cdc524b28464ce90094eb03ae2bf881ac5de17a2b2b723479d863c4dc219
|
Provenance
The following attestation bundles were made for fruxon-0.5.6.tar.gz:
Publisher:
release.yml on fruxon-ai/fruxon-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fruxon-0.5.6.tar.gz -
Subject digest:
adf5216b348f065d69dd9ec2f3efa47d48621c488129921bef572b970cd1d918 - Sigstore transparency entry: 1531820943
- Sigstore integration time:
-
Permalink:
fruxon-ai/fruxon-sdk@2d18dcd94024c18bb867f1eb2c7a8f975eaf8598 -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/fruxon-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2d18dcd94024c18bb867f1eb2c7a8f975eaf8598 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file fruxon-0.5.6-py3-none-any.whl.
File metadata
- Download URL: fruxon-0.5.6-py3-none-any.whl
- Upload date:
- Size: 85.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4a51613f67582e0aa94e35bd041f2d77ef1638c0e779dfad83e361f93623a30
|
|
| MD5 |
cb9ab75940947b17136f64733200175d
|
|
| BLAKE2b-256 |
7737f749bc2d520679659d6b1531cc34b8a4df9d2b5b8871f132e12f0a7f30d8
|
Provenance
The following attestation bundles were made for fruxon-0.5.6-py3-none-any.whl:
Publisher:
release.yml on fruxon-ai/fruxon-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fruxon-0.5.6-py3-none-any.whl -
Subject digest:
a4a51613f67582e0aa94e35bd041f2d77ef1638c0e779dfad83e361f93623a30 - Sigstore transparency entry: 1531821048
- Sigstore integration time:
-
Permalink:
fruxon-ai/fruxon-sdk@2d18dcd94024c18bb867f1eb2c7a8f975eaf8598 -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/fruxon-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2d18dcd94024c18bb867f1eb2c7a8f975eaf8598 -
Trigger Event:
workflow_dispatch
-
Statement type: