Riza is the production-ready isolated runtime for agentic apps.
10K+
For most customers, our hosted Code Interpreter API offers the best solution to safely execute untrusted Python, JavaScript, Ruby or PHP in an isolated and secure sandbox, powered by WebAssembly.
However, you may want to deploy the Code Interpreter API into your network for security, compliance, or performance reasons.
Unlike other code interpreter solutions, the Riza Code Interpreter is easy to deploy. It's deployed as a stateless, horizontally scalable service using a single Docker image, with easy-to-meet system requirements.
metal instances.The rizaio/code-interpreter image supports Linux AMD64 and ARM64/v8.
$ docker pull rizaio/code-interpreter
Running the service requires a license key.
$ docker run --rm -p3003:3003 -it rizaio/code-interpreter
-----> Validating license key...
ERROR: The 'RIZA_LICENSE_KEY' environment variable is not set
Please reach out to [email protected] to get a trial license.
Once you've obtained a license key, add it to the environment under the
RIZA_LICENSE_KEY environment variable.
$ docker run -p3003:3003 -e RIZA_LICENSE_KEY=riza_license_xxx --rm -it rizaio/code-interpreter
-----> Validating license key...
License key provided via 'RIZA_LICENSE_KEY' environment variable
Success.
-----> Loading Python (cached)
-----> Loading JavaScript / TypeScript (cached)
-----> Listening on 0.0.0.0:3003
The port can be configured using the PORT environment variable.
The self-hosted Code Interpreter API is a drop-in replacement for our hosted API.
Our client libraries support self-hosted instances
by setting the base URL of the client. When running locally, this will default
to http://localhost:3003.
import Riza from '@riza-io/api';
const riza = new Riza({
baseUrl: "http://localhost:3003",
apiKey: "riza_self_hosted",
});
async function main() {
const resp = await riza.command.exec({
language: "PYTHON"
code: "print('Hello, self-hosting!')",
});
console.log(resp);
}
main();
Content type
Image
Digest
sha256:704cea088…
Size
203.1 MB
Last updated
about 1 year ago
docker pull rizaio/code-interpreter