boxxkite-sandbox 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- boxxkite_sandbox-0.2.3/LICENSE +201 -0
- boxxkite_sandbox-0.2.3/PKG-INFO +119 -0
- boxxkite_sandbox-0.2.3/PYPI_README.md +77 -0
- boxxkite_sandbox-0.2.3/README.md +255 -0
- boxxkite_sandbox-0.2.3/pyproject.toml +149 -0
- boxxkite_sandbox-0.2.3/setup.cfg +4 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/__init__.py +43 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_checkpoint.py +65 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_config.py +407 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_create.py +409 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_files_skills.py +277 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_http_client.py +168 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_metadata.py +231 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_proxy.py +1100 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_recovery.py +365 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_sessions_lookup.py +193 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_tls_auth.py +470 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/_manager_warm_pool.py +385 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/audit.py +696 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/aws_identity.py +150 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/azure_identity.py +109 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/browser_network_policy.py +222 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/capability_policy.py +262 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/checkpoint_backend.py +218 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/__init__.py +10 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/app.py +185 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/client.py +156 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_allowlist.py +94 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_audit.py +54 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_config.py +44 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_exec.py +55 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_files.py +153 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_images.py +116 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_keys.py +76 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_log.py +74 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_mcp.py +162 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_secrets.py +91 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_session.py +149 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_signup.py +81 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_up.py +117 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_volumes.py +88 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_webhooks.py +103 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/cmd_whoami.py +34 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/config_store.py +125 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/context.py +44 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/cli/errors.py +37 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/command_whitelist.py +560 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/execution_cleanup.py +25 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/k8s_auth.py +288 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/lazy_runtime.py +191 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/local_env.py +46 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/manager.py +951 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/pod_claim_policy.py +68 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/preset_packages.py +439 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/resource_config.py +449 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/secret_keys.py +91 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/secrets_network_policy.py +251 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/session_store.py +181 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/sidecar_auth.py +110 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tls.py +189 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/__init__.py +165 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/_file_paths.py +166 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/adapters.py +243 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/bash_tool.py +407 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/browser_tools.py +503 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/factory.py +632 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/file_tools.py +663 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/git_tools.py +1358 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/http_request_tool.py +228 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/lsp_tools.py +368 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/node_interpreter_tool.py +254 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/present_files.py +296 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/process_tools.py +524 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/pty_tools.py +216 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/python_interpreter_tool.py +236 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/run_tests_tool.py +234 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/search_tools.py +502 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/test_parsers/__init__.py +20 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/test_parsers/pytest_parser.py +139 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/test_parsers/registry.py +53 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/test_parsers/schema.py +76 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/tools/types.py +60 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/warm_pool.py +1388 -0
- boxxkite_sandbox-0.2.3/src/boxxkite/warm_pool_sizing.py +188 -0
- boxxkite_sandbox-0.2.3/src/boxxkite_sandbox.egg-info/PKG-INFO +119 -0
- boxxkite_sandbox-0.2.3/src/boxxkite_sandbox.egg-info/SOURCES.txt +190 -0
- boxxkite_sandbox-0.2.3/src/boxxkite_sandbox.egg-info/dependency_links.txt +1 -0
- boxxkite_sandbox-0.2.3/src/boxxkite_sandbox.egg-info/entry_points.txt +2 -0
- boxxkite_sandbox-0.2.3/src/boxxkite_sandbox.egg-info/requires.txt +23 -0
- boxxkite_sandbox-0.2.3/src/boxxkite_sandbox.egg-info/top_level.txt +1 -0
- boxxkite_sandbox-0.2.3/tests/test_audit.py +176 -0
- boxxkite_sandbox-0.2.3/tests/test_audit_chain.py +296 -0
- boxxkite_sandbox-0.2.3/tests/test_bash_tool.py +254 -0
- boxxkite_sandbox-0.2.3/tests/test_browser_network_policy.py +279 -0
- boxxkite_sandbox-0.2.3/tests/test_browser_resource_floor.py +62 -0
- boxxkite_sandbox-0.2.3/tests/test_browser_tools.py +358 -0
- boxxkite_sandbox-0.2.3/tests/test_capability_policy.py +402 -0
- boxxkite_sandbox-0.2.3/tests/test_chaos_pod_eviction_mid_session.py +153 -0
- boxxkite_sandbox-0.2.3/tests/test_chaos_warm_pool_exhaustion.py +128 -0
- boxxkite_sandbox-0.2.3/tests/test_cli.py +615 -0
- boxxkite_sandbox-0.2.3/tests/test_cli_audit.py +85 -0
- boxxkite_sandbox-0.2.3/tests/test_cli_keys_whoami.py +142 -0
- boxxkite_sandbox-0.2.3/tests/test_cli_log_watch.py +225 -0
- boxxkite_sandbox-0.2.3/tests/test_cli_mcp_init.py +179 -0
- boxxkite_sandbox-0.2.3/tests/test_cli_resources.py +457 -0
- boxxkite_sandbox-0.2.3/tests/test_cmd_up_compose_discovery.py +65 -0
- boxxkite_sandbox-0.2.3/tests/test_command_whitelist.py +115 -0
- boxxkite_sandbox-0.2.3/tests/test_criu_pause_resume_status.py +40 -0
- boxxkite_sandbox-0.2.3/tests/test_deploy_package_json_overrides.py +30 -0
- boxxkite_sandbox-0.2.3/tests/test_desktop_resource_floor.py +24 -0
- boxxkite_sandbox-0.2.3/tests/test_docker_compose_minio_ports.py +33 -0
- boxxkite_sandbox-0.2.3/tests/test_fault_injection.py +350 -0
- boxxkite_sandbox-0.2.3/tests/test_full_state_checkpoint.py +168 -0
- boxxkite_sandbox-0.2.3/tests/test_full_state_rbac_parity.py +180 -0
- boxxkite_sandbox-0.2.3/tests/test_git_tools.py +548 -0
- boxxkite_sandbox-0.2.3/tests/test_gpu_support.py +98 -0
- boxxkite_sandbox-0.2.3/tests/test_helm_smoke.py +90 -0
- boxxkite_sandbox-0.2.3/tests/test_http_request_tool.py +89 -0
- boxxkite_sandbox-0.2.3/tests/test_k8s_auth.py +281 -0
- boxxkite_sandbox-0.2.3/tests/test_kata_template_parity.py +153 -0
- boxxkite_sandbox-0.2.3/tests/test_lazy_runtime.py +154 -0
- boxxkite_sandbox-0.2.3/tests/test_lsp_tools.py +335 -0
- boxxkite_sandbox-0.2.3/tests/test_manager.py +1839 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_browser.py +134 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_browser_network_policy.py +312 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_declarative_builder.py +205 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_interpreter.py +81 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_local_env.py +39 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_lsp.py +91 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_mcp_connections_network_policy.py +212 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_node_interpreter.py +79 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_process_sessions.py +365 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_secrets_network_policy.py +305 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_snapshot.py +152 -0
- boxxkite_sandbox-0.2.3/tests/test_manager_volume_mounts.py +143 -0
- boxxkite_sandbox-0.2.3/tests/test_network_policy.py +169 -0
- boxxkite_sandbox-0.2.3/tests/test_no_scheduler_in_manager_source.py +28 -0
- boxxkite_sandbox-0.2.3/tests/test_node_interpreter_tool.py +178 -0
- boxxkite_sandbox-0.2.3/tests/test_pinned_checksum_verification.py +180 -0
- boxxkite_sandbox-0.2.3/tests/test_pod_security_policy.py +91 -0
- boxxkite_sandbox-0.2.3/tests/test_pod_template_parity.py +385 -0
- boxxkite_sandbox-0.2.3/tests/test_process_tools.py +335 -0
- boxxkite_sandbox-0.2.3/tests/test_pty_tools.py +222 -0
- boxxkite_sandbox-0.2.3/tests/test_publish_images_sbom_signing.py +135 -0
- boxxkite_sandbox-0.2.3/tests/test_pytest_parser.py +155 -0
- boxxkite_sandbox-0.2.3/tests/test_python_interpreter_tool.py +178 -0
- boxxkite_sandbox-0.2.3/tests/test_rbac_secrets_network_policy.py +85 -0
- boxxkite_sandbox-0.2.3/tests/test_render_yaml_parity.py +132 -0
- boxxkite_sandbox-0.2.3/tests/test_run_tests_tool.py +197 -0
- boxxkite_sandbox-0.2.3/tests/test_search_tools.py +294 -0
- boxxkite_sandbox-0.2.3/tests/test_secrets_network_policy.py +221 -0
- boxxkite_sandbox-0.2.3/tests/test_session_store.py +141 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_auth.py +260 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_auth_parity.py +27 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_browser.py +745 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_confirmed_flush.py +71 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_desktop.py +253 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_docker_socket_warning.py +56 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_exec_no_env_injection.py +60 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_exec_output_cap.py +90 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_exec_secret_env.py +222 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_file_op_symlink_containment.py +180 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_file_size_cap.py +46 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_http_request.py +348 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_interpreter.py +253 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_lsp.py +653 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_metrics.py +99 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_mount_bucket.py +140 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_node_interpreter.py +309 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_path_toctou.py +222 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_preview_proxy.py +394 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_process_restart_survival.py +478 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_process_sessions.py +443 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_pty.py +700 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_pty_exec.py +164 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_read_size_precheck.py +163 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_session_exec_budget.py +795 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_storage_gcs.py +156 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_storage_s3_checksum.py +62 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_str_replace.py +148 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_tls_parity.py +33 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_tls_startup.py +58 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_tool_call_session_id.py +108 -0
- boxxkite_sandbox-0.2.3/tests/test_sidecar_watch_directory.py +104 -0
- boxxkite_sandbox-0.2.3/tests/test_tls.py +126 -0
- boxxkite_sandbox-0.2.3/tests/test_tls_pinning_integration.py +90 -0
- boxxkite_sandbox-0.2.3/tests/test_tool_factory.py +278 -0
- boxxkite_sandbox-0.2.3/tests/test_tools_adapters.py +557 -0
- boxxkite_sandbox-0.2.3/tests/test_version_consistency.py +60 -0
- boxxkite_sandbox-0.2.3/tests/test_warm_pool_fast_claim.py +287 -0
- boxxkite_sandbox-0.2.3/tests/test_warm_pool_sizing.py +216 -0
- boxxkite_sandbox-0.2.3/tests/test_workflow_action_pinning.py +47 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 boxxkite contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: boxxkite-sandbox
|
|
3
|
+
Version: 0.2.3
|
|
4
|
+
Summary: A self-hostable, Kubernetes-native sandbox for agent code execution — pod-per-session isolation plus a complete bash/python/file tool surface.
|
|
5
|
+
Author: boxxkite contributors
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/EvAlssment/boxxkite
|
|
8
|
+
Project-URL: Repository, https://github.com/EvAlssment/boxxkite
|
|
9
|
+
Project-URL: Issues, https://github.com/EvAlssment/boxxkite/issues
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Intended Audience :: System Administrators
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
17
|
+
Classifier: Topic :: System :: Distributed Computing
|
|
18
|
+
Classifier: Topic :: Security
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: httpx<1,>=0.27
|
|
23
|
+
Requires-Dist: kubernetes_asyncio>=29.0.0
|
|
24
|
+
Requires-Dist: aiohttp<4,>=3.10
|
|
25
|
+
Requires-Dist: typer<1,>=0.12
|
|
26
|
+
Requires-Dist: cryptography>=42
|
|
27
|
+
Requires-Dist: tomli-w<2,>=1.0
|
|
28
|
+
Provides-Extra: langchain
|
|
29
|
+
Requires-Dist: langchain-core<2,>=1.0; extra == "langchain"
|
|
30
|
+
Provides-Extra: llamaindex
|
|
31
|
+
Requires-Dist: llama-index-core<1,>=0.11; extra == "llamaindex"
|
|
32
|
+
Provides-Extra: openai-agents
|
|
33
|
+
Requires-Dist: openai-agents<1,>=0.18; extra == "openai-agents"
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Requires-Dist: boxxkite-sandbox[langchain,llamaindex,openai-agents]; extra == "dev"
|
|
36
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
39
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
40
|
+
Requires-Dist: pip-audit>=2.7; extra == "dev"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
# boxxkite-sandbox
|
|
44
|
+
|
|
45
|
+
**The missing batteries-included, self-hostable sandbox for agent code execution.**
|
|
46
|
+
|
|
47
|
+
Most "agent sandbox" projects give you raw isolation — a pod, a VM, a
|
|
48
|
+
container — and leave you to build the tool surface an LLM agent needs on
|
|
49
|
+
top of it. boxxkite is the other half: a complete `bash`/`python`/file/
|
|
50
|
+
search/process tool surface (15 framework-agnostic tools — LangChain,
|
|
51
|
+
LangGraph, CrewAI, AutoGen, LlamaIndex, or plain OpenAI-style function
|
|
52
|
+
calling) running inside real Kubernetes pod isolation, hardened with
|
|
53
|
+
non-root execution, dropped Linux capabilities, a read-only root
|
|
54
|
+
filesystem, default-deny network egress, and secret-scrubbed command
|
|
55
|
+
output.
|
|
56
|
+
|
|
57
|
+
**Who this is for:** teams *building their own agent products* that need
|
|
58
|
+
isolated, multi-tenant code execution at scale — one Kubernetes pod per
|
|
59
|
+
session, many sessions, many tenants. If you just want your own coding
|
|
60
|
+
assistant to run shell commands on your own machine, this is the wrong
|
|
61
|
+
layer.
|
|
62
|
+
|
|
63
|
+
## Install
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip install boxxkite-sandbox
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Note the PyPI name is `boxxkite-sandbox`, not `boxxkite` (already taken) —
|
|
70
|
+
the import path is unaffected: `import boxxkite`.
|
|
71
|
+
|
|
72
|
+
## Quickstart
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git clone https://github.com/EvAlssment/boxxkite.git boxxkite && cd boxxkite
|
|
76
|
+
pip install -e .
|
|
77
|
+
boxxkite up
|
|
78
|
+
boxxkite exec "python3 -c 'print(1 + 1)'"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
from uuid import uuid4
|
|
83
|
+
from boxxkite import SandboxManager
|
|
84
|
+
from boxxkite.tools import create_sandbox_tool_specs
|
|
85
|
+
|
|
86
|
+
manager = SandboxManager()
|
|
87
|
+
session_id = str(uuid4())
|
|
88
|
+
await manager.create_session(organization_id=uuid4(), session_id=session_id)
|
|
89
|
+
|
|
90
|
+
specs = create_sandbox_tool_specs(sandbox_manager=manager, session_id=session_id)
|
|
91
|
+
bash_tool = next(s for s in specs if s.name == "bash_tool")
|
|
92
|
+
result = await bash_tool.handler(command="echo hello from boxxkite")
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`boxxkite.tools.adapters` converts the same tool specs for LangChain,
|
|
96
|
+
LlamaIndex, the OpenAI Agents SDK, or plain OpenAI/Anthropic/Gemini/Mistral
|
|
97
|
+
function-calling schemas — see the full integration table and every other
|
|
98
|
+
runtime mode (real Kubernetes, docker-compose, the `boxxkite` CLI) in the
|
|
99
|
+
[full README](https://github.com/EvAlssment/boxxkite#readme).
|
|
100
|
+
|
|
101
|
+
## Security
|
|
102
|
+
|
|
103
|
+
boxxkite executes arbitrary, agent-generated code — its security posture is
|
|
104
|
+
layered defense in depth (non-root, dropped capabilities, read-only
|
|
105
|
+
filesystem, per-exec network isolation, no credential injection into
|
|
106
|
+
`/exec`). See [SECURITY.md](https://github.com/EvAlssment/boxxkite/blob/main/SECURITY.md)
|
|
107
|
+
for the full model and known follow-ups before deploying this beyond local dev.
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
[Apache 2.0](https://github.com/EvAlssment/boxxkite/blob/main/LICENSE) —
|
|
112
|
+
permissive with an explicit patent grant, no restriction on self-hosting or competing hosted use.
|
|
113
|
+
|
|
114
|
+
## Links
|
|
115
|
+
|
|
116
|
+
[GitHub](https://github.com/EvAlssment/boxxkite) ·
|
|
117
|
+
[Full README](https://github.com/EvAlssment/boxxkite#readme) ·
|
|
118
|
+
[Docs](https://github.com/EvAlssment/boxxkite/tree/main/docs) ·
|
|
119
|
+
[Issues](https://github.com/EvAlssment/boxxkite/issues)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# boxxkite-sandbox
|
|
2
|
+
|
|
3
|
+
**The missing batteries-included, self-hostable sandbox for agent code execution.**
|
|
4
|
+
|
|
5
|
+
Most "agent sandbox" projects give you raw isolation — a pod, a VM, a
|
|
6
|
+
container — and leave you to build the tool surface an LLM agent needs on
|
|
7
|
+
top of it. boxxkite is the other half: a complete `bash`/`python`/file/
|
|
8
|
+
search/process tool surface (15 framework-agnostic tools — LangChain,
|
|
9
|
+
LangGraph, CrewAI, AutoGen, LlamaIndex, or plain OpenAI-style function
|
|
10
|
+
calling) running inside real Kubernetes pod isolation, hardened with
|
|
11
|
+
non-root execution, dropped Linux capabilities, a read-only root
|
|
12
|
+
filesystem, default-deny network egress, and secret-scrubbed command
|
|
13
|
+
output.
|
|
14
|
+
|
|
15
|
+
**Who this is for:** teams *building their own agent products* that need
|
|
16
|
+
isolated, multi-tenant code execution at scale — one Kubernetes pod per
|
|
17
|
+
session, many sessions, many tenants. If you just want your own coding
|
|
18
|
+
assistant to run shell commands on your own machine, this is the wrong
|
|
19
|
+
layer.
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install boxxkite-sandbox
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Note the PyPI name is `boxxkite-sandbox`, not `boxxkite` (already taken) —
|
|
28
|
+
the import path is unaffected: `import boxxkite`.
|
|
29
|
+
|
|
30
|
+
## Quickstart
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
git clone https://github.com/EvAlssment/boxxkite.git boxxkite && cd boxxkite
|
|
34
|
+
pip install -e .
|
|
35
|
+
boxxkite up
|
|
36
|
+
boxxkite exec "python3 -c 'print(1 + 1)'"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
from uuid import uuid4
|
|
41
|
+
from boxxkite import SandboxManager
|
|
42
|
+
from boxxkite.tools import create_sandbox_tool_specs
|
|
43
|
+
|
|
44
|
+
manager = SandboxManager()
|
|
45
|
+
session_id = str(uuid4())
|
|
46
|
+
await manager.create_session(organization_id=uuid4(), session_id=session_id)
|
|
47
|
+
|
|
48
|
+
specs = create_sandbox_tool_specs(sandbox_manager=manager, session_id=session_id)
|
|
49
|
+
bash_tool = next(s for s in specs if s.name == "bash_tool")
|
|
50
|
+
result = await bash_tool.handler(command="echo hello from boxxkite")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
`boxxkite.tools.adapters` converts the same tool specs for LangChain,
|
|
54
|
+
LlamaIndex, the OpenAI Agents SDK, or plain OpenAI/Anthropic/Gemini/Mistral
|
|
55
|
+
function-calling schemas — see the full integration table and every other
|
|
56
|
+
runtime mode (real Kubernetes, docker-compose, the `boxxkite` CLI) in the
|
|
57
|
+
[full README](https://github.com/EvAlssment/boxxkite#readme).
|
|
58
|
+
|
|
59
|
+
## Security
|
|
60
|
+
|
|
61
|
+
boxxkite executes arbitrary, agent-generated code — its security posture is
|
|
62
|
+
layered defense in depth (non-root, dropped capabilities, read-only
|
|
63
|
+
filesystem, per-exec network isolation, no credential injection into
|
|
64
|
+
`/exec`). See [SECURITY.md](https://github.com/EvAlssment/boxxkite/blob/main/SECURITY.md)
|
|
65
|
+
for the full model and known follow-ups before deploying this beyond local dev.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
[Apache 2.0](https://github.com/EvAlssment/boxxkite/blob/main/LICENSE) —
|
|
70
|
+
permissive with an explicit patent grant, no restriction on self-hosting or competing hosted use.
|
|
71
|
+
|
|
72
|
+
## Links
|
|
73
|
+
|
|
74
|
+
[GitHub](https://github.com/EvAlssment/boxxkite) ·
|
|
75
|
+
[Full README](https://github.com/EvAlssment/boxxkite#readme) ·
|
|
76
|
+
[Docs](https://github.com/EvAlssment/boxxkite/tree/main/docs) ·
|
|
77
|
+
[Issues](https://github.com/EvAlssment/boxxkite/issues)
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="assets/logo.svg" alt="boxxkite" width="72" height="72">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">boxxkite</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="LICENSE"><img alt="License: Apache 2.0" src="https://img.shields.io/badge/license-Apache%202.0-blue"></a>
|
|
9
|
+
<a href="https://github.com/EvAlssment/boxxkite/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/EvAlssment/boxxkite/actions/workflows/ci.yml/badge.svg"></a>
|
|
10
|
+
<a href="https://pypi.org/project/boxxkite-sandbox/"><img alt="PyPI" src="https://img.shields.io/pypi/v/boxxkite-sandbox?label=PyPI"></a>
|
|
11
|
+
<a href="https://www.npmjs.com/package/boxxkite-client"><img alt="npm" src="https://img.shields.io/npm/v/boxxkite-client?label=npm"></a>
|
|
12
|
+
<a href="https://pkg.go.dev/github.com/EvAlssment/boxxkite/sdk-go"><img alt="Go Reference" src="https://pkg.go.dev/badge/github.com/EvAlssment/boxxkite/sdk-go.svg"></a>
|
|
13
|
+
<a href="https://crates.io/crates/boxxkite-client"><img alt="crates.io" src="https://img.shields.io/crates/v/boxxkite-client.svg"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://boxxkite-site.vercel.app">Website</a> ·
|
|
18
|
+
<a href="#quickstart">Quickstart</a> ·
|
|
19
|
+
<a href="https://boxxkite-site.vercel.app/developers">Docs</a> ·
|
|
20
|
+
<a href="#self-hosting">Self-hosting</a> ·
|
|
21
|
+
<a href="#security">Security</a> ·
|
|
22
|
+
<a href="examples/">Examples</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<a href="https://boxxkite-site.vercel.app" title="Watch the boxxkite demo">
|
|
27
|
+
<img src="assets/boxxkite-platform-poster.jpg" alt="boxxkite platform overview — click to watch the demo" width="800">
|
|
28
|
+
</a>
|
|
29
|
+
</p>
|
|
30
|
+
<p align="center">
|
|
31
|
+
<a href="https://boxxkite-site.vercel.app">▶ Watch the demo</a>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
**The missing batteries-included, self-hostable sandbox for agent code execution.**
|
|
35
|
+
|
|
36
|
+
Most "agent sandbox" projects give you raw isolation — a pod, a VM, a container —
|
|
37
|
+
and leave you to build the tool surface an LLM agent actually needs on top of it.
|
|
38
|
+
boxxkite is the other half: a complete `bash`/`python`/file/search/process tool
|
|
39
|
+
surface running inside real Kubernetes pod isolation, self-hostable end to end.
|
|
40
|
+
Point your agent framework at it and you have a real sandbox in minutes, on
|
|
41
|
+
infrastructure you control.
|
|
42
|
+
|
|
43
|
+
- **15 framework-agnostic tools** (plus an opt-in 8-tool git set) — LangChain,
|
|
44
|
+
LangGraph, LlamaIndex, CrewAI, AutoGen, the OpenAI Agents SDK, or plain
|
|
45
|
+
function calling, with no required dependency on any of them
|
|
46
|
+
- **One Kubernetes pod per session** — non-root, all capabilities dropped,
|
|
47
|
+
read-only root filesystem, network egress denied by default
|
|
48
|
+
- **A hosted-API control-plane you run yourself** — accounts, API keys,
|
|
49
|
+
fair-use limits, and client SDKs in four languages, if you want a real
|
|
50
|
+
multi-tenant API in front of the sandbox instead of embedding it directly
|
|
51
|
+
- **CLI, MCP server, Helm chart, and a one-click Render deploy** for the
|
|
52
|
+
control-plane — see [Self-hosting](#self-hosting)
|
|
53
|
+
- **Nothing held back.** Every piece here — runtime, control-plane, all four
|
|
54
|
+
SDKs, the MCP server — is Apache-2.0-licensed and self-hostable; there's no
|
|
55
|
+
separate closed hosted-only tier
|
|
56
|
+
|
|
57
|
+
**Who this is for:** teams *building their own agent products* that need
|
|
58
|
+
isolated, multi-tenant code execution at scale. It's **not** a single-user
|
|
59
|
+
local dev-session sandbox like the built-in `bash` tool in an IDE or CLI
|
|
60
|
+
coding agent — if you just want your own assistant to run shell commands on
|
|
61
|
+
your machine, boxxkite is the wrong layer.
|
|
62
|
+
|
|
63
|
+
## Start Here
|
|
64
|
+
|
|
65
|
+
If you are new to the repo, use this decision tree:
|
|
66
|
+
|
|
67
|
+
1. **I just want to try the sandbox locally**
|
|
68
|
+
Use `boxxkite up` from the Quickstart below. This is the fastest path and
|
|
69
|
+
does not require Kubernetes.
|
|
70
|
+
2. **I want the real Kubernetes deployment on my laptop**
|
|
71
|
+
Use [`deploy/local-kind/README.md`](deploy/local-kind/README.md). It
|
|
72
|
+
explains the kind-based flow, the Apple Silicon limitation, and the
|
|
73
|
+
`kubectl proxy` step.
|
|
74
|
+
3. **I want the hosted API / multi-tenant control-plane**
|
|
75
|
+
Use the control-plane section below, then the
|
|
76
|
+
[`examples/hosted_control_plane/`](examples/hosted_control_plane/) guide.
|
|
77
|
+
|
|
78
|
+
For contributors, the important mental model is: the root package gives you
|
|
79
|
+
the sandbox runtime, while `control-plane/`, the SDKs, and `mcp-server/` are
|
|
80
|
+
separate packages with their own installs and tests.
|
|
81
|
+
|
|
82
|
+
## Quickstart
|
|
83
|
+
|
|
84
|
+
Clone the repo, create a virtualenv, install the root package, then start
|
|
85
|
+
the local stack:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
git clone https://github.com/EvAlssment/boxxkite.git boxxkite && cd boxxkite
|
|
89
|
+
python3 -m venv .venv
|
|
90
|
+
source .venv/bin/activate
|
|
91
|
+
pip install -e ".[dev]"
|
|
92
|
+
boxxkite up # builds + starts sandbox, sidecar, and local MinIO
|
|
93
|
+
boxxkite exec "python3 -c 'print(1 + 1)'"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
> The PyPI name is `boxxkite-sandbox`, not `boxxkite` (already taken). Install
|
|
97
|
+
> it with `pip install -e ".[dev]"` from the repo root; the import path
|
|
98
|
+
> (`import boxxkite`) and the `boxxkite` CLI command are unaffected.
|
|
99
|
+
|
|
100
|
+
If `boxxkite up` succeeds, the quickest smoke test is:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
boxxkite exec "python3 -c 'print(1 + 1)'"
|
|
104
|
+
boxxkite files ls /
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
That confirms the sandbox, the sidecar, and the CLI are talking to each other
|
|
108
|
+
correctly.
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
from uuid import uuid4
|
|
112
|
+
from boxxkite import SandboxManager
|
|
113
|
+
from boxxkite.tools import create_sandbox_tool_specs
|
|
114
|
+
|
|
115
|
+
manager = SandboxManager()
|
|
116
|
+
session_id = str(uuid4())
|
|
117
|
+
await manager.create_session(organization_id=uuid4(), session_id=session_id)
|
|
118
|
+
|
|
119
|
+
specs = create_sandbox_tool_specs(sandbox_manager=manager, session_id=session_id)
|
|
120
|
+
bash_tool = next(s for s in specs if s.name == "bash_tool")
|
|
121
|
+
result = await bash_tool.handler(command="echo hello from boxxkite")
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Framework adapters (`boxxkite.tools.adapters`) convert the same tool specs for
|
|
125
|
+
LangChain, LlamaIndex, the OpenAI Agents SDK, or plain OpenAI/Anthropic/
|
|
126
|
+
Gemini/Mistral function-calling schemas — see the
|
|
127
|
+
[full integration guide](https://boxxkite-site.vercel.app/developers/guides/quickstart)
|
|
128
|
+
and [`examples/`](examples/) for a runnable version of every framework.
|
|
129
|
+
|
|
130
|
+
## Self-hosting
|
|
131
|
+
|
|
132
|
+
Everything in this repo — including the `control-plane/` hosted multi-tenant
|
|
133
|
+
API — is something you deploy yourself:
|
|
134
|
+
|
|
135
|
+
- **Real Kubernetes** — two steps. First lay down the cluster prerequisites
|
|
136
|
+
(RBAC, NetworkPolicy, pod-security admission policy, ServiceAccount,
|
|
137
|
+
Config/Secret scaffolding) by applying `deploy/rbac.yaml`/
|
|
138
|
+
`network-policy.yaml`/`pod-security-policy.yaml`, or
|
|
139
|
+
`helm install boxxkite deploy/helm/boxxkite`. This chart does **not** deploy
|
|
140
|
+
the control-plane itself (it has no Deployment/Service) — the per-session
|
|
141
|
+
sandbox pods are created programmatically by the control-plane at runtime.
|
|
142
|
+
Then deploy the `control-plane/` API separately (see the Render button
|
|
143
|
+
below or the [developer docs](https://boxxkite-site.vercel.app/developers)).
|
|
144
|
+
A local `kind` cluster works too: `./deploy/local-kind/setup.sh`.
|
|
145
|
+
- **One-click Render deploy** for the control-plane API —
|
|
146
|
+
[](https://render.com/deploy?repo=https://github.com/EvAlssment/boxxkite)
|
|
147
|
+
(still needs a real Kubernetes cluster for actual sandbox execution).
|
|
148
|
+
- **docker-compose**, for local iteration without a cluster — see the
|
|
149
|
+
Quickstart above.
|
|
150
|
+
|
|
151
|
+
> docker-compose mode shares a PID namespace with the sandbox container and
|
|
152
|
+
> execs into it via `nsenter`, the same mechanism the Kubernetes runtime
|
|
153
|
+
> uses — it no longer needs (or mounts) the host's Docker socket. See
|
|
154
|
+
> [SECURITY.md](SECURITY.md) for the current list of disclosed limitations.
|
|
155
|
+
|
|
156
|
+
Full walkthroughs for every path above (Kubernetes, Helm, Render, the
|
|
157
|
+
`boxxkite` CLI's hosted mode, secrets, webhooks, MCP, and every SDK) live on
|
|
158
|
+
the [developer docs site](https://boxxkite-site.vercel.app/developers).
|
|
159
|
+
|
|
160
|
+
### Run the control-plane locally
|
|
161
|
+
|
|
162
|
+
The `control-plane/` multi-tenant API is a **separate service** from the
|
|
163
|
+
`boxxkite up` SDK path — it is *not* part of `deploy/docker-compose.yml`, and you
|
|
164
|
+
run it on its own. To bring it up against a throwaway SQLite database (no
|
|
165
|
+
Postgres required) for API exploration:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
cd control-plane
|
|
169
|
+
uv venv # create .venv
|
|
170
|
+
uv pip install -e '../[dev]' # install the boxxkite runtime (sibling pkg)
|
|
171
|
+
uv pip install -e '.[dev]' # install the control-plane itself
|
|
172
|
+
ENVIRONMENT=development DATABASE_URL=sqlite+aiosqlite:///./cp.db \
|
|
173
|
+
uv run uvicorn control_plane.main:app --port 8099
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Then check it's up:
|
|
177
|
+
|
|
178
|
+
- `http://localhost:8099/health` — liveness (process is up)
|
|
179
|
+
- `http://localhost:8099/health/ready` — readiness (round-trips a DB query)
|
|
180
|
+
- `http://localhost:8099/docs` — interactive OpenAPI docs
|
|
181
|
+
|
|
182
|
+
This gets you the API surface (accounts, API keys, session bookkeeping), but
|
|
183
|
+
**actually executing sandbox pods still needs a real Kubernetes cluster** — the
|
|
184
|
+
control-plane creates per-session pods programmatically at runtime (a local
|
|
185
|
+
`kind` cluster via `deploy/local-kind/setup.sh` works). Against SQLite with no
|
|
186
|
+
cluster you can exercise the HTTP/auth surface, not real code execution.
|
|
187
|
+
|
|
188
|
+
## What's in this repo
|
|
189
|
+
|
|
190
|
+
One repo, several independently-versioned pieces, kept together deliberately
|
|
191
|
+
(see [CONTRIBUTING.md](CONTRIBUTING.md)):
|
|
192
|
+
|
|
193
|
+
| Piece | What it is |
|
|
194
|
+
|---|---|
|
|
195
|
+
| `src/boxxkite/` (`boxxkite-sandbox` on PyPI) | The core: `SandboxManager`, `WarmPoolManager`, and the 15+ tool `boxxkite.tools` surface. Embed this directly against your own cluster. |
|
|
196
|
+
| `sidecar/` | The FastAPI service that runs in every sandbox pod — filesystem I/O, command exec via `nsenter`, storage sync. |
|
|
197
|
+
| `control-plane/` | Optional hosted-API layer in front of `SandboxManager` — accounts, API keys, fair-use limits. |
|
|
198
|
+
| `sdk-python/`, `sdk-js/`, `sdk-go/`, `sdk-rust/` | Thin HTTP clients for *your own* running control-plane. |
|
|
199
|
+
| `mcp-server/` (`boxxkite-mcp`) | Wraps the Python SDK as an MCP tool source for Claude Code, Claude Desktop, Codex, or Cursor. |
|
|
200
|
+
| `handoff-cli/` (`boxxkite-handoff`) | Moves an in-progress local Claude Code/Codex CLI/opencode session into a fresh sandbox, full conversation history included — see [docs/handoff-adapters.md](docs/handoff-adapters.md). Not yet published. |
|
|
201
|
+
| `bastion/` | Standalone SSH server bridging into a session's human-takeover WebSocket. |
|
|
202
|
+
| `deploy/` | Kubernetes manifests, Helm chart, Dockerfiles, docker-compose, Render Blueprint. |
|
|
203
|
+
| `examples/` | Runnable cookbook — LangGraph, LangChain, raw HTTP, OpenAI/Gemini/Mistral function calling, and more. |
|
|
204
|
+
|
|
205
|
+
## Security
|
|
206
|
+
|
|
207
|
+
boxxkite executes arbitrary, agent-generated code — its security posture is
|
|
208
|
+
layered defense in depth: a per-pod shared-secret sidecar auth token, a
|
|
209
|
+
fresh empty network namespace on every `exec` call, non-root execution with
|
|
210
|
+
every Linux capability dropped, and a read-only root filesystem. No single
|
|
211
|
+
one of these is meant to stand alone.
|
|
212
|
+
|
|
213
|
+
See [SECURITY.md](SECURITY.md) for the full model, known limitations, and
|
|
214
|
+
how to report a vulnerability privately — this project runs arbitrary code,
|
|
215
|
+
so a sandbox-escape report deserves a fast, private path, not a public
|
|
216
|
+
issue. The [security model guide](https://boxxkite-site.vercel.app/developers/guides/security-model)
|
|
217
|
+
covers the same ground with runnable examples.
|
|
218
|
+
|
|
219
|
+
## Published packages and images
|
|
220
|
+
|
|
221
|
+
| Package | Registry |
|
|
222
|
+
|---|---|
|
|
223
|
+
| `boxxkite-sandbox` | [PyPI](https://pypi.org/project/boxxkite-sandbox/) |
|
|
224
|
+
| `boxxkite-client` (Python) | [PyPI](https://pypi.org/project/boxxkite-client/) |
|
|
225
|
+
| `boxxkite-client` (JS/TS) | [npm](https://www.npmjs.com/package/boxxkite-client) |
|
|
226
|
+
| `boxxkite-mcp` | [PyPI](https://pypi.org/project/boxxkite-mcp/) |
|
|
227
|
+
| `boxxkite-client` (Go) | [pkg.go.dev](https://pkg.go.dev/github.com/EvAlssment/boxxkite/sdk-go) |
|
|
228
|
+
| `boxxkite-client` (Rust) | [crates.io](https://crates.io/crates/boxxkite-client) |
|
|
229
|
+
|
|
230
|
+
Container images are published to GHCR (`ghcr.io/evalssment/…`):
|
|
231
|
+
|
|
232
|
+
| Image | Architectures |
|
|
233
|
+
|---|---|
|
|
234
|
+
| `boxxkite-sandbox` | **linux/amd64 only** |
|
|
235
|
+
| `boxxkite-sandbox-minimal` | linux/amd64, linux/arm64 |
|
|
236
|
+
| `boxxkite-sidecar` | linux/amd64, linux/arm64 |
|
|
237
|
+
| `boxxkite-control-plane` | linux/amd64, linux/arm64 |
|
|
238
|
+
|
|
239
|
+
> **`boxxkite-sandbox` is amd64-only.** Its Dockerfile deliberately hard-fails on
|
|
240
|
+
> arm64 because the pinned Chrome-for-Testing release has no `linux/arm64` build
|
|
241
|
+
> (`deploy/sandbox.Dockerfile`). **arm64 / Apple-Silicon users should use
|
|
242
|
+
> `boxxkite-sandbox-minimal`** (multi-arch, no Chrome/LibreOffice/pandoc stack),
|
|
243
|
+
> or build/run the full image under `linux/amd64` emulation — `docker-compose.yml`
|
|
244
|
+
> already forces `platform: linux/amd64` for exactly this reason. The other three
|
|
245
|
+
> images are multi-arch.
|
|
246
|
+
|
|
247
|
+
## License
|
|
248
|
+
|
|
249
|
+
[Apache 2.0](LICENSE) — permissive, with an explicit patent grant. Use, modify, self-host, or build a
|
|
250
|
+
competing hosted service on top of boxxkite; there's no restriction.
|
|
251
|
+
|
|
252
|
+
## Contributing
|
|
253
|
+
|
|
254
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) — we use the Developer Certificate of
|
|
255
|
+
Origin (`git commit -s`), not a CLA.
|