Find a file
Russell Ballestrini 5380af54cb Add key subcommand to all 31 implementations
- Validate API keys via portal endpoint
- Show key status, tier, expiration with color-coded output
- Add --extend flag to open browser for key renewal
- Update .gitignore for compiled binaries
- Update README with key command documentation
2025-12-27 11:50:34 -05:00
test Initial commit: 42 UN CLI implementations 2025-12-23 09:57:08 -05:00
tests Fix license comment syntax for JS/TS/Lua/Elixir 2025-12-23 11:18:14 -05:00
.gitignore Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
LICENSE Initial commit: 42 UN CLI implementations 2025-12-23 09:57:08 -05:00
README.md Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.awk Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.clj Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.cob Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.cpp Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.cr Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
Un.cs Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.d Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.dart Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.erl Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.ex Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.f90 Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.forth Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.fs Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.go Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.groovy Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.hs Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
Un.java Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.jl Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.js Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.kt Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.lisp Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.lua Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.m Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.ml Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.nim Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.php Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.pl Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.pro Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.ps1 Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.py Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.r Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.raku Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un.rb Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.rs Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.scm Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.sh Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.tcl Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.ts Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.v Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un.zig Add key subcommand to all 31 implementations 2025-12-27 11:50:34 -05:00
un_deno.ts Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00
un_inception.c Add --type option for services across all 42 implementations 2025-12-26 08:39:34 -05:00

UN CLI Inception

The UN CLI written in every language it can execute. 42 implementations, one unified interface.

"If you replace every line of un.c with a different programming language, but it still executes code on unsandbox... is it still un?"

Quick Start

# Clone all 42 implementations
git clone https://github.com/russellballestrini/un-inception.git
cd un-inception

# Set your API key
export UNSANDBOX_API_KEY=your_key_here

# Run any implementation
python3 un.py test/fib.py
node un.js test/fib.py
ruby un.rb test/fib.py
go run un.go test/fib.py

# They all produce the same output:
# fib(10) = 55

Implementations

Language File Category
Python un.py Scripting
JavaScript un.js Scripting
TypeScript un.ts Scripting
Ruby un.rb Scripting
PHP un.php Scripting
Perl un.pl Scripting
Lua un.lua Scripting
Bash un.sh Scripting
Go un.go Systems
Rust un.rs Systems
C un_inception.c Systems
C++ un.cpp Systems
D un.d Systems
Nim un.nim Systems
Zig un.zig Systems
V un.v Systems
Java Un.java JVM/.NET
Kotlin un.kt JVM/.NET
C# Un.cs JVM/.NET
F# un.fs JVM/.NET
Groovy un.groovy JVM/.NET
Dart un.dart JVM/.NET
Haskell un.hs Functional
OCaml un.ml Functional
Clojure un.clj Functional
Scheme un.scm Functional
Common Lisp un.lisp Functional
Erlang un.erl Functional
Elixir un.ex Functional
Julia un.jl Scientific
R un.r Scientific
Crystal un.cr Scientific
Fortran un.f90 Scientific
COBOL un.cob Legacy
Prolog un.pro Logic
Forth un.forth Stack
Tcl un.tcl Other
Raku un.raku Other
Objective-C un.m Other
Deno un_deno.ts Other
PowerShell un.ps1 Other
AWK un.awk Other

Features

Each implementation supports:

  • Execute code files via the unsandbox API
  • Auto-detect language from file extensions
  • Environment variables (-e KEY=VALUE)
  • Input files (-f file.txt)
  • Artifact collection (-a -o ./output)
  • Interactive sessions (session subcommand)
  • Persistent services (service subcommand)
  • API key management (key subcommand)
  • Network modes (-n zerotrust or -n semitrusted)

Usage

# Execute a script
./un.py script.py

# With environment variables
./un.py -e DEBUG=1 -e NAME=World script.py

# With input files
./un.py -f data.csv -f config.json process.py

# Collect artifacts
./un.py -a -o ./output main.c

# Interactive session
./un.py session --shell python3

# Persistent service
./un.py service --name myapp --ports 8080 --bootstrap "python3 -m http.server 8080"

# Check API key status
./un.py key

# Extend/renew API key (opens browser)
./un.py key --extend

Testing

# Run a quick test with any implementation
./un.py test/fib.py
# Output: fib(10) = 55

# Run the full test matrix (requires API key)
./tests/run_matrix.sh

License

PUBLIC DOMAIN - NO LICENSE, NO WARRANTY

This is free public domain software for the public good of a permacomputer hosted at permacomputer.com - an always-on computer by the people, for the people. One which is durable, easy to repair, and distributed like tap water for machine learning intelligence.

The permacomputer is community-owned infrastructure optimized around four values:

TRUTH    - First principles, math & science, open source code freely distributed
FREEDOM  - Voluntary partnerships, freedom from tyranny & corporate control
HARMONY  - Minimal waste, self-renewing systems with diverse thriving connections
LOVE     - Be yourself without hurting others, cooperation through natural law

This software contributes to that vision by enabling code execution across all 42 programming languages through a unified interface, accessible to all. Code is seeds to sprout on any abandoned technology.

Learn more: permacomputer.com

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.


Copyright 2025 TimeHexOn & foxhop & russell@unturf