osls, short for Open Serverless, is an open-source command-line tool for deploying serverless applications on AWS. It uses familiar YAML in serverless.yml to define Lambda functions, event sources, IAM permissions, and supporting CloudFormation resources.
osls v4 continues the osls project that began as a maintained fork of Serverless Framework v3. It is independent from upstream Serverless Framework v4 and does not use Serverless Dashboard, Console, or licensing services. It remains compatible with most Serverless Framework v3 service configurations, with the v4 breaking changes documented in the upgrade guide.
osls v4 is currently in beta and will be released as stable soon. The stable osls v3 line lives on the 3.x branch and continues to receive regular releases. If you are coming from osls v3 or Serverless Framework v3, start with Upgrading to v4.
Requires Node.js ^20.19.0 || ^22.13.0 || >=24.
If you are replacing a global Serverless Framework installation, remove it first so the serverless command resolves to osls.
npm uninstall -g serverless
npm install -g osls@4
osls --versionThe package provides the osls, sls, and serverless commands.
- Deploying
- Packaging
- Testing
- Services
- Functions
- Layers
- IAM Function Permissions
- Parameters
- Variables
- Resources
- Composing services
- Workflow Tips
- Serverless.yml Reference
- Overview
- HTTP (API Gateway v2)
- REST (API Gateway v1)
- ActiveMQ
- Application Load Balancer
- Alexa Skill
- Alexa Smart Home
- CloudWatch Event
- CloudWatch Log
- CloudFront
- Cognito User Pool
- EventBridge Event
- IoT
- IoT Fleet Provisioning
- Kafka
- Kinesis & DynamoDB
- MSK
- RabbitMQ
- S3
- Schedule
- SNS
- SQS
- Websocket
- Overview
- config credentials
- create
- install
- package
- deploy
- deploy function
- deploy list
- invoke
- invoke local
- logs
- metrics
- info
- rollback
- rollback function
- remove
- plugin list
- plugin search
- plugin install
- plugin uninstall
- generate event
This repository was created and is maintained by Bref maintainers and contributors. The main goal is continuity for existing serverless projects, including Bref projects, so they keep working over the long term. No major new feature areas are planned, but community contributions are welcome for maintenance work such as supporting new AWS Lambda runtimes, adapting to AWS changes, fixing bugs, and making small improvements.
This project is open-source and free to use. However, maintaining it requires time and effort. If you want to support the project, you can become a sponsor on GitHub Sponsors.
- The documentation is focused on the current osls release and AWS usage. Documentation for non-AWS providers has been removed.
- New AWS Lambda runtimes are kept up to date.
- osls is published as an npm package only. There is no standalone binary distribution.
- Internal AWS calls use AWS SDK for JavaScript v3 in osls v4, including support for IAM Identity Center credentials.
- Known inherited dependency vulnerabilities have been fixed.
- Serverless Dashboard, Enterprise, and Console features have been removed. If you rely on those hosted upstream services, use upstream Serverless Framework instead.
- Serverless Components support has been removed because those projects are old and unmaintained.
- The Tencent Cloud integration from the upstream
serverlessCLI has been removed. - Unused dependencies, broken auto-updating, post-install messages, and automatic use of a local
serverlessinstallation fromnode_moduleshave been removed.

