Options
Every option of config/nimbus.php.
Publish the file first with php artisan vendor:publish --tag=nimbus-config. Nimbus works without the file and uses the defaults below.
Global options
| Option | Default | Description |
|---|---|---|
prefix | 'nimbus' | The URI prefix of the interface. With the default, Nimbus is at /nimbus. |
domain | null | Serves Nimbus on this domain only. When null, Nimbus answers on every domain of the application. |
allowed_envs | ['local'] | The application environments where Nimbus is enabled. |
default_application | 'main' | The application loaded when none is chosen. |
display_app_name | false | Shows config('app.name') next to the Nimbus name in the top bar. |
nested_folders | false | Groups routes in nested folders that follow the path. Applies to all applications. |
base_url | null | The host Nimbus sends requests to. When null, it uses the host and scheme of the current request. Applies to all applications. |
environments | [] | Extra targets for requests. See below. |
snapshot | false | Saves extracted routes and reuses them while the source files are unchanged. |
workspace | ['enabled' => false, 'path' => '.nimbus'] | Saves requests as JSON files in your repository. |
mcp.level | 'send' | What an AI agent may do through the MCP server. Use 'read', 'send', or 'write'. |
mcp.http | false | Serves the MCP server over HTTP at the Nimbus prefix followed by /mcp, for local requests only. |
mcp.driver | 'process' | How the MCP server sends a request. Use 'process' or 'http'. |
mcp.allow_committed_writes | false | Keeps the database changes of write requests sent by an agent. |
mcp.allow_remote_environments | false | Lets an agent send requests to the configured environments. |
mcp.rate_limit | 60 | The most requests an agent can send in a minute. 0 turns it off. |
mcp.body_limit | 20000 | The longest response body returned to an agent, in characters. |
applications | one application named main | The applications Nimbus shows. See below. |
Allowed environments
The allowed_envs option is the only gate in front of Nimbus. Nimbus is disabled when the current APP_ENV is not in the list.
The default is ['local']. This means staging is not allowed by default, and neither is production.
'allowed_envs' => ['local', 'testing'],Caution
Nimbus can act as any user of your application. Anyone who can reach the page in an allowed environment can use this. Only add an environment that outsiders cannot reach.
Environments
environments lists targets such as staging or production. The current host always exists and must not be listed.
'environments' => [
'staging' => [
'name' => 'Staging',
'base_url' => 'https://staging.example.com',
'enabled' => false,
],
],2
3
4
5
6
7
| Key | Description |
|---|---|
| Array key | The environment id. |
name | The name shown in the menu. |
base_url | An absolute http or https URL. |
enabled | Whether the environment is available when Nimbus starts. |
This option is not related to allowed_envs. See Environments.
Application options
Each entry of applications accepts these options. The key is the application id.
| Option | Default | Description |
|---|---|---|
name | none | The name shown in the application switcher. |
routes.strategy | 'auto_detect' | 'auto_detect' reads Laravel routes. 'openapi' reads OpenAPI files. |
routes.prefix | 'api' | Only routes that start with this prefix are listed. |
routes.versioned | false | Reads a version segment such as v1 in /api/v1/users. |
routes.openapi.files | [] | A map of version names to OpenAPI file paths. Needed for the openapi strategy. |
routes.openapi.show_operation_id | false | Shows the Operation ID in the sidebar instead of the path. |
auth.guard | 'web' | The guard that authenticates your API routes. |
auth.special.injector | 'actor_header' | How Nimbus authenticates as a user. |
headers | [] | Headers added to every request of this application. |
Authentication injectors
| Value | Behavior |
|---|---|
'actor_header' | Works with any guard and writes nothing to the database. |
'remember_me_cookie' | Forwards or creates a remember me cookie. It may write a remember token to the user row. |
'tymon_jwt' | Sends a bearer token created with the tymon/jwt-auth package. |
You can also give the class name of your own injector. The class must implement the special authentication injector contract in the package.
Global headers
A header value is a plain value or a generator alias. The aliases are '$uuid', '$email', and '$string'.
'headers' => [
'X-Request-ID' => '$uuid',
'X-App-Version' => '1.0.0',
],2
3
4