@@ -185,6 +185,7 @@ def create(
185185 entrypoint : Optional [str ] | Omit = omit ,
186186 environment_variables : Optional [Dict [str , str ]] | Omit = omit ,
187187 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
188+ gateways : Optional [Dict [str , devbox_create_params .Gateways ]] | Omit = omit ,
188189 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
189190 metadata : Optional [Dict [str , str ]] | Omit = omit ,
190191 mounts : Optional [Iterable [Mount ]] | Omit = omit ,
@@ -227,6 +228,12 @@ def create(
227228
228229 file_mounts: Map of paths and file contents to write before setup. Use mounts instead.
229230
231+ gateways: [Beta] (Optional) Gateway specifications for credential proxying. Map key is the
232+ environment variable prefix (e.g., 'GWS_ANTHROPIC'). The gateway will proxy
233+ requests to external APIs using the specified credential without exposing the
234+ real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
235+ 'my_claude_key'}}
236+
230237 launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.
231238
232239 metadata: User defined metadata to attach to the devbox for organization.
@@ -265,6 +272,7 @@ def create(
265272 "entrypoint" : entrypoint ,
266273 "environment_variables" : environment_variables ,
267274 "file_mounts" : file_mounts ,
275+ "gateways" : gateways ,
268276 "launch_parameters" : launch_parameters ,
269277 "metadata" : metadata ,
270278 "mounts" : mounts ,
@@ -1723,6 +1731,7 @@ async def create(
17231731 entrypoint : Optional [str ] | Omit = omit ,
17241732 environment_variables : Optional [Dict [str , str ]] | Omit = omit ,
17251733 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
1734+ gateways : Optional [Dict [str , devbox_create_params .Gateways ]] | Omit = omit ,
17261735 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
17271736 metadata : Optional [Dict [str , str ]] | Omit = omit ,
17281737 mounts : Optional [Iterable [Mount ]] | Omit = omit ,
@@ -1765,6 +1774,12 @@ async def create(
17651774
17661775 file_mounts: Map of paths and file contents to write before setup. Use mounts instead.
17671776
1777+ gateways: [Beta] (Optional) Gateway specifications for credential proxying. Map key is the
1778+ environment variable prefix (e.g., 'GWS_ANTHROPIC'). The gateway will proxy
1779+ requests to external APIs using the specified credential without exposing the
1780+ real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
1781+ 'my_claude_key'}}
1782+
17681783 launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.
17691784
17701785 metadata: User defined metadata to attach to the devbox for organization.
@@ -1803,6 +1818,7 @@ async def create(
18031818 "entrypoint" : entrypoint ,
18041819 "environment_variables" : environment_variables ,
18051820 "file_mounts" : file_mounts ,
1821+ "gateways" : gateways ,
18061822 "launch_parameters" : launch_parameters ,
18071823 "metadata" : metadata ,
18081824 "mounts" : mounts ,
0 commit comments