Main Sequence Documentation
Main Sequence is a platform for building and operating CodeRepositories, jobs, APIs, Agents, and reusable platform resources. The Python SDK provides the authentication, client models, CLI workflows, Git-native source context, observability, instrumentation, and scaffold utilities used by those workflows.
MetaTables is an independent domain package, installed as
mainsequence-metatable and imported as metatables. The SDK documentation
keeps the extraction history and migration boundary, while current table
implementation guidance belongs to that package.
Choose A Reading Path
Knowledge
Use the knowledge guides for platform concepts and end-to-end behavior:
- Authentication
- Git source and Environment context
- Users and Access
- Constants and Secrets
- Scheduling Jobs
- Artifacts
- Resource releases
- FastAPI request user context
- Server caller assertions
CLI
Use the CLI overview for authentication, Agents,
CodeRepositories, jobs and runs, images, resources and releases, access
policies, scaffold maintenance, Docker, and local-development commands. The
installed mainsequence --help output is authoritative for the installed SDK
version.
Reference
Use the generated API reference when you need exact Python classes, methods, parameters, or return types.
Architecture And Migrations
- Architecture decision index
- ADR 0034: Extract the MetaTables Python API
- MetaTables SDK removal
- Independent Git and Environment context
- CodeRepository ontology hard cut
- Streamlit dashboard support removal
The beginner tutorial is maintained in its own self-contained CodeRepository. This repository remains the source of truth for SDK APIs, CLI behavior, architecture decisions, and generated reference documentation.