Model or dataset
undertheseanlp/underthesea avatar
undertheseanlp/underthesea

Twelve built-in agent tools, seven names, and an install with no uvicorn

Underthesea - AI Assistant

1,819 stars309 forksPythonApache-2.0

At a glance

What is it?
Underthesea began as a Vietnamese NLP toolkit and is now also an agent framework that talks to four model providers using only the Python standard library. The interesting parts are in the packaging: an empty agent extra, a Langfuse extra that allows the version the code does not target, and a serving helper that needs a web server the base install does not contain.
Who is it for?
Underthesea fits a team that wants an agent in the same environment as an existing Vietnamese NLP stack and does not want four vendor SDKs in its dependency tree, since the provider classes are hand-written against urllib and json. Four things to check first.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • undertheseanlp/underthesea1,819 ★ · +17
Star history
Repository2026-09-102026-11-22
undertheseanlp/underthesea1.8k1.8k

17 Stars in the last 73 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Twelve tools are claimed and seven categories are named

The agent ships a default tool set, and the number does not match the list. The claim is 12 built-in tools, and the names given are calculator, datetime, web search, wikipedia, file I/O, shell and python exec, which is seven categories and leaves five tools unnamed. Two of the named entries decide how much a default agent can do on its own: a shell tool runs commands, and a python exec tool runs code, both handed to a model that is reading whatever the conversation and any document contain. An agent constructed with default_tools is therefore an agent with command execution available by default, not an opt-in capability. Nothing in the README describes a permission mode, a confirmation step, or a way to load the set minus those two, so anyone building on this should decide which of the twelve are actually needed before an untrusted document reaches the context.

The agent has no dependencies, the distribution has seven

The zero dependency claim is scoped, and the scope matters. The agent communicates with model APIs using only the standard library, urllib and json, with no openai, anthropic or google-genai package, and the four provider classes, OpenAI, AzureOpenAI, Anthropic and Gemini, are written to follow the Anthropic SDK pattern so the shapes are familiar. Each reads its key from the environment, and a bare LLM() picks one up automatically from OPENAI_API_KEY, AZURE_OPENAI_API_KEY with AZURE_OPENAI_ENDPOINT, ANTHROPIC_API_KEY or GOOGLE_API_KEY. The package installs with pip install underthesea, and each provider reads its own variables:

bash
$ export OPENAI_API_KEY=sk-...
$ export AZURE_OPENAI_API_KEY=... && export AZURE_OPENAI_ENDPOINT=https://...
$ export ANTHROPIC_API_KEY=sk-ant-...
$ export GOOGLE_API_KEY=...

But the optional extra named agent is an empty list, and the base install still brings Click, tqdm, requests, joblib, PyYAML, underthesea_core at 3.3.0 or later, and huggingface-hub. So a pip install underthesea is a normal dependency install with a dependency-free agent inside it, and there is an extra named prompt that pulls openai for the older API surface.

The trace extra allows langfuse 2, the tracer is described as v4

Tracing is on by default. Every agent call is written to a directory under the user home, ~/.underthesea/traces/, and each run produces a JSON file whose name carries the date and a short trace id, in the shape 20260411_trace_a1b2c3.json, so a directory listing is the log. The switch is an environment variable rather than an argument: setting UNDERTHESEA_TRACE_DISABLED=1 turns it off, which is the one setting a shared machine needs before anything sensitive passes through an agent. The architecture puts two tracers beside each other, a LocalTracer writing those JSON files and a LangfuseTracer for hosted observability, plus a decorator that nests spans automatically. The gap is in the extra: the trace group declares langfuse>=2.0.0 with no upper bound, while the tracer is labelled as Langfuse v4 observability, so a resolver that satisfies the constraint can hand the code a major version two major versions behind.

The serving helper needs a web server the base install omits

The A2A server is built so nothing in it requires a framework. make_app() returns a raw ASGI callable, and the README shows it being handed to uvicorn, hypercorn or daphne from a module path, so the app is genuinely portable. serve() is the convenience form, and the architecture tree describes it as a uvicorn convenience entrypoint, which puts it in tension with the base install carrying no web framework at all. uvicorn, starlette and httpx live in the agent-server extra, installed as pip install 'underthesea[agent-server]'. So serve(agent, port=8000, path="/a2a/math", ui=True) with the bundled chat interface needs that extra, while make_app(agent, path="/a2a/math") is the call that works with nothing added. The endpoints are fixed once the path is chosen: a GET on the ui suffix for the bundled interface, a GET on the well-known agent-card.json path, and a POST for JSON-RPC message/stream over server-sent events.

One agent object per conversation, not per server

The serving model is per context rather than per process. One Agent is spawned for each A2A contextId, so every conversation keeps its own history, and the streaming contract is spelled out in artifacts: tool calls are sent live as tool_call artifacts while the loop runs, and the agent's reply arrives as a text artifact when the loop finishes. That is a different shape from a request that returns a completion, and a client has to be written against the event stream rather than against a single response. The protocol reference in the README points at a repository in the agentic commerce project, which is where the A2A specification is cited from, and the project site is the authority for the rest. For long jobs rather than a single exchange there is a separate session object, with a progress file, a task list and run_until_complete taking a maximum session count, built to follow the harness patterns described in Anthropic's long-running agent write-up.

The package says Vietnamese NLP Toolkit, the repository says AI Assistant

Three different names describe the same distribution. The repository description reads Underthesea - AI Assistant, the project description in the manifest reads Vietnamese NLP Toolkit, and the README's own heading calls it an open-source Agentic AI Toolkit, with the agent framework described as arriving in v9.3.0 and the Vietnamese NLP modules kept alongside it. The original work is still there and still the reason the package depends on a compiled core: sentence segmentation is the first row of the pipeline table, and the full reference is a separate NLP.md at the root. What that table shows is its first entry and then stops, inside the first usage snippet, so the list of pipelines has to come from that file. The manifest also classifies the package as Production/Stable, which is a claim about a project whose newest tagged feature is an agent server, and it declares support for Python 3.10 through 3.14 with tox.ini and tests/ in the tree.

Two tag prefixes, and two releases an hour apart

The release history is irregular in a way that matters if you pin by tag. The newest release is underthesea-v9.5.0, titled A2A Agent Server, published on 2026-05-17. Below it sit v9.3.0, published 2026-04-11 at 04:11, and underthesea-v9.4.0, titled Agent Tracing, published the same day at 05:28. So two of the three carry the underthesea- prefix and one does not, the 9.3.0 and 9.4.0 releases are an hour apart with 9.4.0 cut second, and 9.5.0 follows 9.4.0 in number while the two were released in the opposite order of the same day. The last commit on main is dated 2026-09-28, four months after the newest tag, so the agent work has continued without a release to match it. A small detail in the same area: the project homepage is written with http in the repository metadata and with https in the manifest.

Editorial conclusion

Underthesea fits a team that wants an agent in the same environment as an existing Vietnamese NLP stack and does not want four vendor SDKs in its dependency tree, since the provider classes are hand-written against urllib and json. Four things to check first. The default tool set is on by default and includes shell access and Python execution, so an agent created with default_tools is already able to run commands, and the count does not match the list: the README says twelve tools and names seven categories. Second, the package itself is not dependency-free even though the agent layer is, so pip pulls huggingface-hub and a compiled core regardless. Third, the trace extra allows langfuse from 2.0.0 while the tracer is described as targeting v4, which is a resolver problem rather than a code one. Fourth, calling serve() needs the agent-server extra for uvicorn, and make_app is the path that has no such dependency. The package is Apache-2.0 and the newest tag, underthesea-v9.5.0, is dated 2026-05-17.

Frequently asked questions

How do you install underthesea?

With pip install underthesea, which requires Python 3.10 or later. The base install brings Click, tqdm, requests, joblib, PyYAML, underthesea_core and huggingface-hub, and separate extras cover voice, deep, trace, assistant, agent-server and prompt.

Which AI providers does the underthesea agent support?

OpenAI, Azure OpenAI, Anthropic Claude and Google Gemini, each as its own class following the Anthropic SDK pattern, with a bare LLM() that auto-detects from OPENAI_API_KEY, AZURE_OPENAI_API_KEY with AZURE_OPENAI_ENDPOINT, ANTHROPIC_API_KEY or GOOGLE_API_KEY.

Does the underthesea agent need vendor SDK packages?

No. It talks to the model APIs with the Python standard library, using urllib and json, with no openai, anthropic or google-genai package required, and the agent extra in the manifest is an empty list. A separate prompt extra does install openai for the other API surface.

How does the underthesea agent record its traces?

Every call is written automatically to ~/.underthesea/traces/ as a dated JSON file, and UNDERTHESEA_TRACE_DISABLED=1 turns that off. A LangfuseTracer is offered for hosted observability, installed through the trace extra, which declares langfuse>=2.0.0 while the tracer is described as targeting v4.

What do I need to serve an underthesea agent over A2A?

For the convenience entrypoint, pip install 'underthesea[agent-server]', which brings uvicorn, starlette and httpx, then call serve with a port, a path and ui for the bundled chat interface. For a server you run yourself, make_app returns a raw ASGI callable with no web framework dependency, and one agent is created per A2A contextId.

Official sources

  1. License: Apache-2.0
  2. Project website
  3. README
  4. Releases
  5. undertheseanlp/underthesea on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/undertheseanlp-underthesea.svg)](https://hysenlabs.com/projects/undertheseanlp-underthesea)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/undertheseanlp-underthesea.svg)](https://hysenlabs.com/projects/undertheseanlp-underthesea)

Was this useful?