Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small")
ctx = client.runtime.create_context(runtime.runtime_id)

context = client.runtime.get_context(runtime.runtime_id, ctx.context_id)
print(context.context_id)
print(context.language)  # python
print(context.cwd)       # /workspace

runtime.kill()

Parameters

ParameterTypeRequiredDescription
runtime_idstringYesRuntime identifier
context_idstringYesContext identifier

Response

FieldTypeDescription
context_idstringContext identifier
languagestringLanguage of the context
cwdstringWorking directory