Skip to main content

A small agent that calls OpenAI-compatible APIs.

Project description

Plain Agent

A small agent that calls OpenAI compatible LLM APIs.

This project starts with a streaming agent loop:

Interactive terminal
  -> reads your prompt
  -> streams assistant text as it arrives
  -> detects tool calls from the model
  -> runs workspace tools when requested
  -> sends tool results back to the model
  -> repeats until the assistant gives a final answer

Install

This project uses uv to track the Python environment. If uv is not installed, follow the official installation guide.

uv sync

Configuration

Create a local .env file or export environment variables in your shell. See .env.example for more examples.

For DeepSeek:

export DEEPSEEK_API_KEY="your-api-key"
export LLM_PROVIDER="deepseek"
export LLM_MODEL="deepseek-v4-flash"

For OpenAI:

export OPENAI_API_KEY="your-api-key"
export LLM_PROVIDER="openai"
export LLM_MODEL="gpt-5.4-mini"

You can still set LLM_BASE_URL when you want to override the provider default, such as pointing at a local OpenAI compatible server like Ollama.

Run

uv run plain-agent

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plain_agent-0.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plain_agent-0.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file plain_agent-0.1.0.tar.gz.

File metadata

  • Download URL: plain_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plain_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9ac2de8a81227a79578edb7b2fc47afeb3cc764b93a30a721aaabd7a31303ade
MD5 580c7ef6d248f7bbff8d661a784bb887
BLAKE2b-256 b18d693adb15ce144ed8d73a4bf38802cceeaae02b2f8e9418cdc6b31333384e

See more details on using hashes here.

File details

Details for the file plain_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: plain_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plain_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 969439ecf24e97b478bc01ecc1617de2b0264cf36ce8e4fa34b14c1227cc0ee1
MD5 21ec104a082cb861008bfe0d11be9fe3
BLAKE2b-256 4665a7b73bd619e46611516cc3d32f8eaf958ad1b85601a7a4111c2334cce35c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page