---
title: Code interpreter: how we built it ourselves
date: 2026-01-30
summary: How the nexos.ai code interpreter lets a model run real code instead of guessing: what it is for, and the isolated, ephemeral micro-VM sandbox behind it.
---

*Originally published by nexos.ai on LinkedIn, Jan 30, 2026 ([original](https://www.linkedin.com/pulse/code-interpreter-how-weve-built-ourselves-nexos-ai-hgckf)). Mirrored here so it stays available.*

![Code interpreter: how we've built it from the ground up](/article-code-interpreter.png)

Code Interpreter improves your interaction with AI. This feature marks a fundamental shift from probability to precision. Standard LLMs predict and generate the next most likely word in a sentence, which can (and do) lead to hallucinations when handling complex arithmetic or logic. Our Code Interpreter solves this by allowing the model to write and execute actual code to derive answers.

Whether your teams need to calculate compound interest rates, solve complex logistics algorithms, or process precise date-time logic, the model generates executable scripts to produce exact results. This ensures that the numerical data and logic provided are not guesses, but computationally verified facts.

## Deep data analysis & insights

The Code Interpreter transforms the LLM into an expert data analyst capable of handling your organisation's most complex datasets. Users can simply upload raw files (such as a quarterly financial Excel spreadsheet or a CSV of customer logs) and instruct the model to perform rigorous quantitative tasks.

## Automated content & asset creation

Beyond analysis, this feature streamlines the actual production of business documents by generating files. It allows your teams to move from raw ideas to finalised documents without wasting time on manual formatting.

- Perform AI-powered research and make findings downloadable in a ready-made, formatted document:

- Generate agendas based on meeting notes, past comms, and other data in an easily-sharable format:

- Merge files and/or create multiple files based on the AI request:

- Create AI-generated reports in data, project progress, and more.

## A secure alternative for daily data tasks

Shadow IT – employees using unverified, third-party websites for file conversion or editing – poses a significant risk. The Code Interpreter eliminates this need by bringing these features in-house to a governed and fully observable AI platform.

Whether an employee needs to convert a sensitive PDF to a Word doc, resize a batch of high-resolution images, or edit a video clip, they can now do so within your sanctioned infrastructure. This provides a safe, internal mechanism for file manipulation, ensuring proprietary data never leaves your secure ecosystem to be processed by "free" online tools.

Building security and isolation

We understand that enabling code execution raises valid security questions, which is why we have built this feature with a defense-in-depth architecture.

All code generated by the LLM runs in a strictly isolated, ephemeral sandbox environment. This means the execution layer is completely firewalled from the internet. The environment is spun up solely for the duration of the user session and is immediately destroyed afterward. This allows your teams to leverage the power of executable code while maintaining strict compliance and data governance standards.

## How does Code Interpreter work behind the scenes

Every execution runs inside an isolated, ephemeral micro-VM with syscall filtering, filesystem whitelisting, and hard network egress blocks at the virtualization layer. This design ensures code cannot escape its environment or interact with external systems – giving teams the freedom to run complex logic without security exposure.

The file workflow balances safety with usability. Computation happens in a transient, sandboxed workspace, but any output files (spreadsheets, PDFs, slide decks) are promoted through a controlled persistence layer into your organisation’s secure storage. Users gain durable, shareable artifacts without exposing raw execution state or risking data leakage.

Each micro-VM is destroyed immediately after execution, while encrypted metadata-level audit logs provide compliance visibility without capturing customer data. The result is a system that delivers the flexibility of real code execution with enterprise-grade guarantees: hardened isolation, strict governance, and a seamless end-user experience.
